Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693974 - app-emacs/vhdl-mode-3.38.1: Fetch failure if User-Agent is Wget*
Summary: app-emacs/vhdl-mode-3.38.1: Fetch failure if User-Agent is Wget*
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL: https://guest.iis.ee.ethz.ch/~zimmi/e...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-10 08:54 UTC by Frej Drejhammar
Modified: 2019-10-29 13:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frej Drejhammar 2019-09-10 08:54:31 UTC
It appears that the vhdl-mode website redirects http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html to https://guest.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html. But as this redirect is not active for $SRC_URI, the package fails to fetch. Just replacing http://www.iis.ee.ethz.ch with https://guest.iis.ee.ethz.ch will probably fix things.
Comment 1 Ulrich Müller gentoo-dev 2019-09-10 10:05:37 UTC
I cannot reproduce this, the redirect seems to work just fine here:

$ curl -Li http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
HTTP/1.1 301 
Date: Tue, 10 Sep 2019 09:43:55 GMT
Server: Varnish
X-Varnish: 683478983
location: https://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
Content-Length: 0
Connection: keep-alive

HTTP/1.1 301 Moved Permanently
Date: Tue, 10 Sep 2019 09:02:56 GMT
Location: https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
Content-Length: 267
Content-Type: text/html; charset=iso-8859-1
vary: cookie
Age: 2458
X-RateLimit-Remaining: 19
X-Powered-By: ETH Informatikdiensten
X-Delievered-From: Hoengg
Connection: keep-alive

HTTP/1.1 302 Found
Date: Tue, 10 Sep 2019 09:02:56 GMT
Location: https://iis-people.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
Content-Length: 250
Content-Type: text/html; charset=iso-8859-1
vary: cookie
Age: 2458
X-RateLimit-Remaining: 19
X-Powered-By: ETH Informatikdiensten
X-Delievered-From: Zentrum
Connection: keep-alive

HTTP/1.1 302 Found
Date: Tue, 10 Sep 2019 09:43:55 GMT
Server: Apache/2.4.25 (Debian)
Location: https://guest.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
Content-Length: 337
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 200 OK
Date: Tue, 10 Sep 2019 09:43:55 GMT
Server: Apache/2.4.25 (Debian)
Last-Modified: Thu, 12 Mar 2015 13:36:39 GMT
ETag: "4dbc0-5111779374979"
Accept-Ranges: bytes
Content-Length: 318400
Content-Type: application/x-gzip

[...]


Anyway, I am going to update the URLs to the last 301 targets, i.e.:

HOMEPAGE="https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html"
SRC_URI="https://iis.ee.ethz.ch/~zimmi/emacs/${P}.tar.gz"
Comment 2 Larry the Git Cow gentoo-dev 2019-09-10 10:06:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=286e761958d017d0fb6b6439b858dcf4ad8f0097

commit 286e761958d017d0fb6b6439b858dcf4ad8f0097
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2019-09-10 09:58:28 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2019-09-10 10:05:05 +0000

    app-emacs/vhdl-mode: Update HOMEPAGE and SRC_URI.
    
    Closes: https://bugs.gentoo.org/693974
    Package-Manager: Portage-2.3.75, Repoman-2.3.17
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-emacs/vhdl-mode/vhdl-mode-3.38.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Frej Drejhammar 2019-09-10 11:52:06 UTC
> I cannot reproduce this, the redirect seems to work just fine here:

With curl the redirect works for me too, using wget (as portage and manually):

wget 'https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz'
--2019-09-10 13:45:35--  https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
Resolving iis.ee.ethz.ch... 129.132.19.216
Connecting to iis.ee.ethz.ch|129.132.19.216|:443... connected.
HTTP request sent, awaiting response... 404 Not found UA
2019-09-10 13:45:36 ERROR 404: Not found UA.

wget https://guest.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz works too
Comment 4 Ulrich Müller gentoo-dev 2019-09-10 12:03:16 UTC

$ curl -Li --user-agent Wget/1.20.3 https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode-3.38.1.tar.gz
HTTP/1.1 404 Not found UA
Date: Tue, 10 Sep 2019 11:57:45 GMT
Server: Varnish
X-Varnish: 684504057
Content-Type: text/html; charset=utf-8
Retry-After: 5
Content-Length: 262
Connection: keep-alive

<!DOCTYPE html>
<html>
  <head>
    <title>404 Not found UA</title>
  </head>
  <body>
    <h1>Error 404 Not found UA</h1>
    <p>Not found UA</p>
    <h3>Guru Meditation:</h3>
    <p>XID: 684504057</p>
    <hr>
    <p>Varnish cache server</p>
  </body>
</html>
Comment 5 Ulrich Müller gentoo-dev 2019-09-10 12:07:32 UTC
So, looks like it is not a problem with wget, but the upstream server errors out if I mimic "User-Agent: Wget/1.20.3" with curl.

If I specify anything else with --user-agent, like "wget/1.20.3", "WGET/1.20.3", or "Some/Random/String", it works fine, and I get proper redirects as in the log from comment #1.
Comment 6 Ulrich Müller gentoo-dev 2019-09-10 12:34:10 UTC
Reported to <servicedesk@id.ethz.ch>.
Comment 7 Ulrich Müller gentoo-dev 2019-09-27 13:45:23 UTC
(In reply to Ulrich Müller from comment #6)
> Reported to <servicedesk@id.ethz.ch>.

No reply.

Anyway, HOMEPAGE works, and the distfile is on Gentoo mirrors. The fetch failure with wget is clearly a problem of the upstream server. Closing.
Comment 8 Ulrich Müller gentoo-dev 2019-10-29 13:19:34 UTC
(In reply to Ulrich Müller from comment #7)
> > Reported to <servicedesk@id.ethz.ch>.
> 
> No reply.

Reminder sent.