#52515 closed defect (fixed)
ncdu @1.12_0: livecheck fails with 403 Forbidden
Reported by: | breun (Nils Breunese) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | nerdling (Jeremy Lavergne) | |
Port: | ncdu |
Description
MacPorts says the ncdu livecheck URL returns 403 Forbidden:
$ port -d livecheck ncdu DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/ncdu DEBUG: OS darwin/16.0.0 (Mac OS X 10.12) arch i386 DEBUG: Going to use alternate build prefix: /Users/breun/.macports DEBUG: workpath = /Users/breun/.macports/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ncdu/ncdu/work DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Starting logging for ncdu DEBUG: Logging disabled, error opening log file: can't create directory "/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ncdu": permission denied DEBUG: Executing org.macports.main (ncdu) DEBUG: livecheck phase started at Wed Oct 5 18:23:00 CEST 2016 DEBUG: Executing org.macports.livecheck (ncdu) DEBUG: Portfile modification date is Wed Oct 05 05:30:05 CEST 2016 DEBUG: Port (livecheck) version is 1.12 DEBUG: Loading the defaults from '/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/livecheck/fallback.tcl' DEBUG: Fetching https://dev.yorhel.nl/download/ Error: cannot check if ncdu was updated (The requested URL returned error: 403 Forbidden)
Strangely enough I can request that URL just fine using curl.
Change History (7)
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 8 years ago by breun (Nils Breunese)
Looks like you're not using the most recent version of the Portfile. The current version no longer looks at SourceForge, since the developer doesn't use that anymore.
comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Yes, sorry, ignore what I said above.
I don't understand why the problem is happening.
comment:4 follow-up: 5 Changed 8 years ago by raimue (Rainer Müller)
I added a bunch of debug code to our curl wrapper in pextlib to extract the real body from the failed request:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /download/ on this server.<br /> Reason: The client software did not provide a hostname using Server Name Indication (SNI), which is required to access this server.<br /> </p> </body></html>
This is a problem due to these conditions:
- curl with SecureTransport will not send SNI in TLS client hello, when it was asked not to verify the server certificate (upstream issue)
- livecheck runs with
--ignore-ssl-cert
becauselivecheck.ignore_sslcert yes
is the default
I committed a quickfix for this problem in r153620.
However, I would also recommend we make livecheck.ignore_sslcert no
the default in base.
comment:5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
comment:6 Changed 7 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
The default has already been changed long time ago in [3de5fafc89ff51f1fb5261ae947aa9fc5abc656b/macports-base].
I'm not able to reproduce this problem.
Maybe there was a temporary server problem.