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

The ETag is messed up again for /assets urls #1405

Open
Kale-Ko opened this issue Mar 7, 2025 · 0 comments
Open

The ETag is messed up again for /assets urls #1405

Kale-Ko opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Kale-Ko
Copy link

Kale-Ko commented Mar 7, 2025

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)

Image
Image

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 ETag
curl "https://staging-api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jdk" --compressed -v -o /dev/null` - Correct response
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` - Two ETags
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` - Two ETags
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` - Two ETags
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` - Two ETags

Expected behavior
There should always be exactly one ETag returned.

Device (please complete the following information):

  • OS:Linux
  • Browser curl, FireFox
  • Version 8.12.1, 136.0

Additional context
This is currently causing problems in a Docker build when the cache is used

@Kale-Ko Kale-Ko added the bug Something isn't working label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant