{"action":"opened","issue":{"url":"https://api.github.com/repos/codenvy/codenvy/issues/734","repository_url":"https://api.github.com/repos/codenvy/codenvy","labels_url":"https://api.github.com/repos/codenvy/codenvy/issues/734/labels{/name}","comments_url":"https://api.github.com/repos/codenvy/codenvy/issues/734/comments","events_url":"https://api.github.com/repos/codenvy/codenvy/issues/734/events","html_url":"https://github.com/codenvy/codenvy/issues/734","id":176840218,"number":734,"title":"Adding node behind the proxy doesn't work for default host name","user":{"login":"dmytro-ndp","id":1197777,"avatar_url":"https://avatars.githubusercontent.com/u/1197777?v=3","gravatar_id":"","url":"https://api.github.com/users/dmytro-ndp","html_url":"https://github.com/dmytro-ndp","followers_url":"https://api.github.com/users/dmytro-ndp/followers","following_url":"https://api.github.com/users/dmytro-ndp/following{/other_user}","gists_url":"https://api.github.com/users/dmytro-ndp/gists{/gist_id}","starred_url":"https://api.github.com/users/dmytro-ndp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmytro-ndp/subscriptions","organizations_url":"https://api.github.com/users/dmytro-ndp/orgs","repos_url":"https://api.github.com/users/dmytro-ndp/repos","events_url":"https://api.github.com/users/dmytro-ndp/events{/privacy}","received_events_url":"https://api.github.com/users/dmytro-ndp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codenvy/codenvy/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/codenvy/codenvy/labels/status/open-for-dev","name":"status/open-for-dev","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-14T07:59:10Z","updated_at":"2016-09-14T07:59:10Z","closed_at":null,"body":"Test case: https://github.com/codenvy/codenvy/blob/master/cdec/installation-manager-tests/src/main/resources/bin/codenvy/install/test-install-single-node-behind-the-proxy.sh\r\n\r\nCommand to install Codenvy on-prem:\r\n```\r\nbash <(curl -L -s --proxy http://testuser:testpassword@proxy.ua.codenvy-dev.com:3128 http://updater.nightly4.codenvy-stg.com/update/repository/public/download/install-codenvy) --license=accept --http-proxy-for-installation=http://testuser:testpassword@proxy.ua.codenvy-dev.com:3128 --https-proxy-for-installation=http://testuser:testpassword@proxy.ua.codenvy-dev.com:3128 --no-proxy-for-installation=\"codenvy.onprem\"```\r\n\r\nThere was next error when trying to add node behind the proxy:\r\n```\r\n[vagrant@codenvy ~]$ codenvy add-node --codenvy-ip 192.168.56.110 node1.codenvy.onprem\r\n[CODENVY] {\r\n  \"message\" : \"Codenvy License can't be validated.\",\r\n  \"status\" : \"ERROR\"\r\n}\r\n```\r\n\r\n_The problem is_: [HttpTransport](https://github.com/codenvy/codenvy/blob/4.7.0/cdec/installation-manager-core/src/main/java/com/codenvy/im/utils/HttpTransport.java#L152-L152) doesn't respect **-DnonProxyHosts** parameter.\r\n\r\n_Fixup_: check if url matches value of **-DnonProxyHosts** parameter and then openConnection by the command:\r\n```HttpURLConnection connection = (HttpURLConnection)new URL(path).openConnection(Proxy.NO_PROXY);```"}}
{"actor":{"display_login":"dmytro-ndp"}}