-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Checksum of /versions mismatch when server returns weak etags #4764
Comments
@derektamsen we probably need to special-case gemstash to request index.rubygems.org for /cc @smellsblue |
@indirect Thanks for the quick response. I was going to open a PR to gsub out the 'W/'. Do you think it's better to fix gemstash instead of the gsub in bundler? Was going to change |
Getting rid of the |
I opened an issue against the gemstash project to track the issue. |
I just thought I would add that the fix for me was to change |
With
bundler 1.12.5
runningbundle update --verbose
I am seeing the following error message:This is against an internal gemstash server which is returning a 302 to https://rubygems.org. I believe #4472 may have introduced the issue but only when the web server returns a weak ETag.
The /versions file on rubygems.org returns a weak ETag
ETag: W/"26dd9dcb85113838e25ce1952ad06fa5"
which is denoted by theW/
. However, /versions served from https://index.rubygems.org serves a strong ETagEtag: "0e6cafa9793dec153155a64e9c2c5a9d"
This may have been introduced due to rails switching the default ETag type from strong to weak in the recent 5.0.0 release. rails/rails#17573
The text was updated successfully, but these errors were encountered: