Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to browse AWS Docker repo's when image count is >200 #5624

Closed
5 tasks done
alexrolleyoctopus opened this issue Jun 13, 2019 · 4 comments
Closed
5 tasks done

Unable to browse AWS Docker repo's when image count is >200 #5624

alexrolleyoctopus opened this issue Jun 13, 2019 · 4 comments
Assignees
Labels
feature/containers kind/bug This issue represents a verified problem we are committed to solving
Milestone

Comments

@alexrolleyoctopus
Copy link

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()

Affected versions

Octopus Server: ??? > Latest

Workarounds

N/A

Links

Initial Report

@alexrolleyoctopus alexrolleyoctopus added kind/bug This issue represents a verified problem we are committed to solving feature/containers labels Jun 13, 2019
@zentron zentron self-assigned this Jun 13, 2019
@zentron
Copy link

zentron commented Jun 13, 2019

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
image
image
Some further testing may be required to reproduce this issue. Maybe ill try with more?
In addition, adding > 200 repositories (different images) also worked
image

@zentron
Copy link

zentron commented Jun 13, 2019

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)

@zentron zentron modified the milestones: 2018.10.8, 2019.5.11 Jun 13, 2019
@zentron
Copy link

zentron commented Jun 13, 2019

Release Note: Bugfix paging through docker registry results

@zentron zentron closed this as completed Jun 13, 2019
@lock
Copy link

lock bot commented Sep 11, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature/containers kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

2 participants