-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Building with SCIFIO module enabled fails with 'file DOWNLOAD HASH mismatch' #80
Comments
This patch should address this issue: |
I don't think the name matters. It is supposed to give the user's browser a name of the file when it is downloaded. What matters are algorithm and checksum. Name can be empty, I think. Passing the full path was probably an oversight by whoever wrote the script. |
@codeling The patch from @blowekamp is now available in ITK Git |
Unfortunately I won't have the time to test until mid of November. I would have one question though - and please excuse my ignorance - will (or has) this change result(ed) in an update to the 4.13.0 and 4.13.1 source releases? Or will one have to get a future release (4.13.2) or the source from one of the two mentioned branches to be able to build again? |
ITK version 4.13.2 is planned to be released. It will be based on |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I believe this specific issue was addressed in patch: http://review.source.kitware.com/#/c/23780/1 and is available for both 4.13 and 5 branches. If there are other issues with SCIFIO, please create a new issue. |
Sorry for the late reply. |
Description
Since a few days, a build with the SCIFIO module enabled fails with:
Steps to Reproduce
Expected behavior
The build should run through.
Actual behavior
The build will fail with above error message when downloading the jre.tar.bz2, said file will be empty (0 bytes).
Reproducibility
Always.
Versions
Release version 4.13.1.
The jre.tar.bz2 is the same in 4.13.0 as far as I can tell (see workaround note below) - MD5 hash
4c75412942f7d36c5e8b8fb38ba975bc
Environment
Happens on:
Additional Information
The actual URL that is used in the download is https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=4c75412942f7d36c5e8b8fb38ba975bc&name=[build-path]/jre.tar.bz2&algorithm=MD5
That URL returns 404 when opened in a browser. For fixing this issue, the jre.tar.bz2 file with the mentioned MD5 hash needs to be be made reachable under that URL again.
As a workaround, a file from a previous build can be copied over into the Modules/Remote/SCIFIO/src directory, then the build will run through. (I had it from a 4.13.0 build, the file has not changed since then apparently).
Side note - information leakage
Is it intentional by the way that this URL includes the full build path in the name parameter? There is no need for the server to know in what folder the user has built ITK; indeed, information about the person building ITK might leak that way. Whatever the intentions behind this
name
parameter are exactly, I don't think the way this is implemented at the moment is a good idea...The text was updated successfully, but these errors were encountered: