Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#7563 closed defect (fixed)

BUG: JHymn can't find sources because there is no user agent in the http request

Reported by: schlu-do@… Owned by: dms@…
Priority: High Milestone: MacPorts 1.4
Component: base Version: 1.3.2
Keywords: JHymn Cc: kayos@…, ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by jmpp@…)

I tried to install aqua/JHymn, but unfortunately there are no sources for version 0.8.5 available at the website http://www.hymn-project.org/download/.

Buut even when I changed the version to the current 0.9.2 (and the md5-sum for that), it still won't load the ZIP archive.

[...] ---> Fetching JHymn DEBUG: Executing com.apple.fetch (JHymn) ---> JHymn_0_9_2_source.zip doesn't seem to exist in /opt/local/var/db/dports/distfiles/JHymn ---> Attempting to fetch JHymn_0_9_2_source.zip from http://www.hymn-project.org/download/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error ---> Attempting to fetch JHymn_0_9_2_source.zip from http://distfiles-od.opendarwin.org/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error ---> Attempting to fetch JHymn_0_9_2_source.zip from http://distfiles-msn.opendarwin.org/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error ---> Attempting to fetch JHymn_0_9_2_source.zip from http://distfiles-bay13.opendarwin.org/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error Error: Target com.apple.fetch returned: fetch failed Warning: the following items did not execute (for JHymn): com.apple.activate com.apple.fetch com.apple.extract com.apple.checksum com.apple.patch com.apple.configure com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

A manual download with Safari was no problem, after that the build and install with 0.9.2 succeeded.

Change History (9)

comment:1 Changed 18 years ago by mww@…

Cc: dms@… removed
Owner: changed from darwinports-bugs@… to dms@…
Summary: JHymn can't find sourcesBUG: JHymn can't find sources

comment:2 Changed 18 years ago by kayos@…

I have confirmed the same problem. "wget" can't download the URL. I get a "permission denied" error. A browser such as FireFox or Safari can download it just fine. Maybe the web site has a special trick to prevent direct downloads?

comment:3 Changed 18 years ago by kayos@…

Cc: kayos@… added

comment:4 Changed 17 years ago by pipping@…

Keywords: JHymn added
Priority: ExpectedBlocker
Version: 1.21.3.2

although i can reproduce the problem on my machine (jhymn can't be fetched) it's not curl's fault.

(see http://paste.lisp.org/display/36616 for the output)

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Exactly. As far as I can tell from reading /Library/Tcl/darwinports1.0/darwinports.tcl, MacPorts uses curl -L -s -S -o to download portfiles, but even using those switches I can download hymn just fine. But MacPorts itself will not, and I don't understand why not.

comment:6 Changed 17 years ago by kballard (Lily Ballard)

Actually it's using a command defined in Pextlib, which uses the curl library. Granted, it should still work. I'm tracing the code right now to see what's going on.

comment:7 Changed 17 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: newclosed

Turns out the hymn-project server returns a 406 error code if a user agent isn't sent in the request. That's very silly.

Fixed in r22771 (merged into 1.4 branch in r22772). Requires recompiling MacPorts from svn, or waiting for next RC of 1.4.

comment:8 Changed 17 years ago by jmpp@…

Component: portsbase
Description: modified (diff)
Milestone: MacPorts 1.4
Priority: BlockerImportant

comment:9 Changed 17 years ago by nox@…

Priority: ImportantHigh
Summary: BUG: JHymn can't find sourcesBUG: JHymn can't find sources because there is no user agent in the http request
Note: See TracTickets for help on using tickets.