We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When fetching /assets urls they will sometimes return no ETag and sometimes will return two ETags, one of which is invalid.
/assets
When two ETags are returned they look like this (as output by curl and FireFox)
To Reproduce Curl the following urls and observe the described behavior.
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -v -o /dev/null
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" --compressed -v -o /dev/null`
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-None-Match: 431fcb363e7ba7c72954d7590cea42ac70bd996b" -v -o /dev/null`
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-None-Match: 431fcb363e7ba7c72954d7590cea42ac70bd996b" --compressed -v -o /dev/null`
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-Match: anything" -v -o /dev/null`
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-Match: anything" --compressed -v -o /dev/null`
Expected behavior There should always be exactly one ETag returned.
Device (please complete the following information):
Additional context This is currently causing problems in a Docker build when the cache is used
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When fetching
/assets
urls they will sometimes return no ETag and sometimes will return two ETags, one of which is invalid.When two ETags are returned they look like this (as output by curl and FireFox)
To Reproduce
Curl the following urls and observe the described behavior.
Details
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -v -o /dev/null
- No ETagcurl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" --compressed -v -o /dev/null`
- Correct responsecurl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-None-Match: 431fcb363e7ba7c72954d7590cea42ac70bd996b" -v -o /dev/null`
- Two ETagscurl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-None-Match: 431fcb363e7ba7c72954d7590cea42ac70bd996b" --compressed -v -o /dev/null`
- Two ETagscurl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-Match: anything" -v -o /dev/null`
- Two ETagscurl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" -H "If-Match: anything" --compressed -v -o /dev/null`
- Two ETagsExpected behavior
There should always be exactly one ETag returned.
Device (please complete the following information):
Additional context
This is currently causing problems in a Docker build when the cache is used
The text was updated successfully, but these errors were encountered: