-
Notifications
You must be signed in to change notification settings - Fork 464
Description
Is your feature request related to a problem? Please describe.
There have been problems with interacting Azure Container Registry, OpenShift Container Registry, and Red Hat Quay, where these servers return a redirect location (the Location: header value) but they fail to honor a redirect URL if it doesn't match the original URL value char-by-char.
(FYI, the ACR issue has been taken care of by setting setNormalizeUri(false) on Apache HttpClient. However, Microsoft should fix their servers eventually.)
Examples:
- Microsoft: After upgrading to 1.31.0, library returns 403 while curl succeeds #795 (comment)
- Red Hat: Fails to pull image from registry - registry.redhat.io GoogleContainerTools/jib#2106 (comment)
- Red Hat: https://groups.google.com/d/msg/quay-sig/2y7tMP0h0g0/IMUQyDDpAgAJ
- Red Hat: Images created by Jib randomly causes 500 Internal server error in Red Hat Quay GoogleContainerTools/jib#1986 (comment)
Describe the solution you'd like
As described in #795 (comment), an option to take the Location: URL value and use it verbatim, without ever modifying any character.
Describe alternatives you've considered
Wait for Red Hat to fix their servers, which they said won't likely happen for a very long time.
Additional context
Fixing this may first require enhancing GenericUrl to disable encoding and decoding (but I am not sure).