{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6586","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6586/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6586/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6586/events","html_url":"https://github.com/NuGet/Home/issues/6586","id":298716054,"number":6586,"title":"NuGet CLI appends service endpoint to a private server url","user":{"login":"mzalves","id":4226870,"avatar_url":"https://avatars2.githubusercontent.com/u/4226870?v=4","gravatar_id":"","url":"https://api.github.com/users/mzalves","html_url":"https://github.com/mzalves","followers_url":"https://api.github.com/users/mzalves/followers","following_url":"https://api.github.com/users/mzalves/following{/other_user}","gists_url":"https://api.github.com/users/mzalves/gists{/gist_id}","starred_url":"https://api.github.com/users/mzalves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzalves/subscriptions","organizations_url":"https://api.github.com/users/mzalves/orgs","repos_url":"https://api.github.com/users/mzalves/repos","events_url":"https://api.github.com/users/mzalves/events{/privacy}","received_events_url":"https://api.github.com/users/mzalves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-20T19:19:49Z","updated_at":"2018-02-20T19:19:49Z","closed_at":null,"author_association":"NONE","body":"## Details about Problem\r\n\r\nNuGet product used (NuGet.exe):\r\n\r\nNuGet version (4.4.1.4656):\r\n\r\ndotnet.exe --version (if appropriate):\r\n\r\nVS version (if appropriate):\r\n\r\nOS version (i.e. win10 v1607 (14393.321)):\r\n\r\nWorked before? If so, with which NuGet version:\r\nNo\r\n\r\n## Detailed repro steps so we can see the same problem\r\n\r\n1. Create a repo in Artifactory like https://company.com/artifactory/api/nuget/nuget-local\r\n\r\n2. Add a new short DNS entry to rewrite to the above Artifactory address like https://nuget.company.com/\r\n\r\n3. Try to push a package to https://nuget.company.com/\r\n\r\nWith the above configuration the NuGet CLI appends \"api/v2/package\" to the source and fails with:\r\n  PUT https://nuget.company.com/api/v2/package/\r\n  NotFound https://nuget.company.com/api/v2/package/ 3332ms\r\n\r\nArtifactory Log:\r\n20180220190210|1|REQUEST|10.2.2.157|user|PUT|/api/nuget/nuget-virtual/api/v2/package/|HTTP/1.1|404|5733\r\n\r\nI have added to the code a tag -NoServiceEndpoint that force the CLI to not append the endpoint. I just have to write some unit test, but the solution is already implemented and I would like to open a pull request with that.\r\n"}}
{"actor":{"display_login":"mzalves"}}