Hatch: fetch-deps.sh downloads an HTML 301 "redirect" file instead of lib/json-20160810.jar

Bug #1858344 reported by Dan Scott on 2020-01-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

* Hatch current master as of 2020-01-05

"hatch.sh compile" currently fails with the following message:

[dan@localhost Hatch]$ ./hatch.sh compile
error: error reading lib/json-20160810.jar; zip END header not found
lib/org : no such file or directory
rm: cannot remove 'lib/org': No such file or directory

This is because "fetch-deps.sh linux" tries to download lib/json-20160810.jar, but gets just an HTML "301 Moved permanently" file instead of the actual jar file.

This is easily fixed by telling curl to follow redirects using the "-L" flag.

Dan Scott (denials) wrote :

Pushed a working branch to add "-L" to the json lib fetch request. The branch is at user/dbs/lp1858344_curl_redirect_for_json_lib / https://git.evergreen-ils.org/?p=working/Hatch.git;a=shortlog;h=refs/heads/user/dbs/lp1858344_curl_redirect_for_json_lib

tags: added: pullrequest
Bill Erickson (berick) wrote :

Issue and fix confirmed. Merged to Hatch master (post v0.3.2)

Changed in evergreen:
status: New → Confirmed
assignee: nobody → Bill Erickson (berick)
status: Confirmed → Fix Committed
assignee: Bill Erickson (berick) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers