{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/4835","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/4835/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/4835/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/4835/events","html_url":"https://github.com/NuGet/Home/issues/4835","id":214951104,"number":4835,"title":"NuGet client does not support relative URl in the next link url","user":{"login":"dtretyakov","id":1025927,"avatar_url":"https://avatars2.githubusercontent.com/u/1025927?v=3","gravatar_id":"","url":"https://api.github.com/users/dtretyakov","html_url":"https://github.com/dtretyakov","followers_url":"https://api.github.com/users/dtretyakov/followers","following_url":"https://api.github.com/users/dtretyakov/following{/other_user}","gists_url":"https://api.github.com/users/dtretyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/dtretyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtretyakov/subscriptions","organizations_url":"https://api.github.com/users/dtretyakov/orgs","repos_url":"https://api.github.com/users/dtretyakov/repos","events_url":"https://api.github.com/users/dtretyakov/events{/privacy}","received_events_url":"https://api.github.com/users/dtretyakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-17T09:34:18Z","updated_at":"2017-03-17T09:34:18Z","closed_at":null,"body":"Currently in the `V2FeedParser` while fetching results in QueryV2FeedAsync method [does not supported the case](https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Protocol.Core.v3/LegacyFeed/V2FeedParser.cs#L449) when in the results feed page link is relative, e.g.:\r\n```\r\n<link href=\"FindPackagesById()?id=%27calcproject%27&semVerLevel=2.0.0&$skiptoken='CalcProject','0.588'\" rel=\"next\"/>\r\n```\r\n\r\nIt tries to get data from it [without attempt to append `_baseAddress`](https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Protocol.Core.v3/LegacyFeed/V2FeedParser.cs#L428) and as result it fails with a following exception:\r\n```\r\nNuGet.Protocol.Core.Types.FatalProtocolException: An error occurred while retrieving package metadata for 'calcproject' from source 'Test'. ---> System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.\r\n   at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)\r\n   at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)\r\n   at NuGet.Protocol.HttpRetryHandler.<>c__DisplayClass0_1.<SendAsync>b__0(CancellationToken timeoutToken)\r\n   at NuGet.Protocol.TimeoutUtility.<StartWithTimeout>d__0`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.HttpRetryHandler.<SendAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.HttpSource.<GetThrottledResponse>d__16.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.HttpSource.<ProcessResponseAsync>d__14`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.V2FeedParser.<LoadXmlAsync>d__47.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.V2FeedParser.<QueryV2FeedAsync>d__46.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.V2FeedParser.<FindPackagesByIdAsync>d__36.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.Protocol.DependencyInfoResourceV2Feed.<ResolvePackages>d__5.MoveNext()\r\n   --- End of inner exception stack trace ---\r\n   at NuGet.Protocol.DependencyInfoResourceV2Feed.<ResolvePackages>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at NuGet.PackageManagement.NuGetPackageManager.<GetLatestVersionCoreAsync>d__90.MoveNext()\r\n```"}}
{"actor":{"display_login":"dtretyakov"}}