You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you a customer of Octopus Deploy? Don't raise the issue here. Please contact our support team so we can triage your issue, making sure it's handled appropriately.
Prerequisites
I have verified the problem exists in the latest version
I have searched open and closed issues to make sure it isn't already reported
I have written a descriptive issue title
I have linked the original source of this report
I have tagged the issue appropriately (area/*, kind/bug, tag/regression?)
The bug
When you have ~200 or more images in your Docker feed when searching for an image the search errors with A relative URI cannot be created because the 'uriString' parameter represents an absolute URI.
What I expected to happen
We should be able to search docker feeds regardless of item count
Log excerpt
2019-04-19 19:44:47.7760 5628 44 ERROR Unhandled error on request: http://octopus/api/Spaces-1/feeds/Feeds-4/packages/versions?packageId=package%2Fui-api&take=20&includePreRelease=true&includeReleaseNotes=false <GUID> by admin : A relative URI cannot be created because the 'uriString' parameter represents an absolute URI.
System.UriFormatException: A relative URI cannot be created because the 'uriString' parameter represents an absolute URI.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Octopus.Core.Packages.Docker.DockerRegistryOAuthClient.<>c__DisplayClass8_0.<GetNextPageUrl>b__1(String x)
at Octopus.CoreUtilities.MaybeExtentions.Select[T,R](Maybe`1 maybe, Func`2 selector)
at Octopus.Core.Packages.Docker.DockerRegistryOAuthClient.GetNextPageUrl(HttpResponseMessage response)
at Octopus.Core.Packages.Docker.DockerRegistryOAuthClient.<GetAllPages>d__4.MoveNext()
Initial investigation using AWS ECR with > 200 tags for a given image indicates that it is able to search through more than one page of results
Some further testing may be required to reproduce this issue. Maybe ill try with more?
In addition, adding > 200 repositories (different images) also worked
Although I was unable to reproduce the exact error even with 600 images, The error message points pretty clearly to what is probably going on. So have updated the parsing of the pagination links to allow the header to send the next page as a relative or absolute url (previously it expected relative)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.
lockbot
locked as resolved and limited conversation to collaborators
Sep 11, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Are you a customer of Octopus Deploy? Don't raise the issue here. Please contact our support team so we can triage your issue, making sure it's handled appropriately.
Prerequisites
The bug
When you have ~200 or more images in your Docker feed when searching for an image the search errors with
A relative URI cannot be created because the 'uriString' parameter represents an absolute URI.
What I expected to happen
We should be able to search docker feeds regardless of item count
Log excerpt
Affected versions
Octopus Server: ??? > Latest
Workarounds
N/A
Links
Initial Report
The text was updated successfully, but these errors were encountered: