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

Bug #1858344 reported by Dan Scott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned

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.

Revision history for this message
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
Revision history for this message
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
Revision history for this message
Terran McCanna (tmccanna) wrote :

Noting that this fix was released some time ago, but the status was not updated at the time.

Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.