Bug#749225: [uscan] does not work with bitbucket

Osamu Aoki osamu at debian.org
Sun Jun 15 14:15:04 UTC 2014


Package: devscripts
Version: 2.14.5
Followup-For: Bug #749225

I got hit with this problem, too.  URL to download was:

  https://bitbucket.org/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz

wget can handle this URL but curl also fails to download.

If it is not easy to fix this, can uscan be taught to use external
program to download file?  At least, uscan can identify correct URL to
use and it can not download it.  If wget is uded for download, it does a
job for me.

FYI: here are the results of download trials with curl and wget

$ curl --verbose https://bitbucket.org/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz
* Hostname was NOT found in DNS cache
*   Trying 131.103.20.167...
* Connected to bitbucket.org (131.103.20.167) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
*        subject: businessCategory=Private Organization; 1.3.6.1.4.1.311.60.2.1.3=US; 1.3.6.1.4.1.311.60.2.1.2=Delaware; serialNumber=3928449; street=1098 Harrison Street; postalCode=94103; C=US; ST=CA; L=San Francisco; O=Atlassian, Inc.; OU=Bitbucket; CN=bitbucket.org
*        start date: 2014-03-05 00:00:00 GMT
*        expire date: 2016-05-25 12:00:00 GMT
*        subjectAltName: bitbucket.org matched
*        issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert High Assurance EV CA-1
*        SSL certificate verify ok.
> GET /libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz HTTP/1.1
> User-Agent: curl/7.37.0
> Host: bitbucket.org
> Accept: */*
> 
< HTTP/1.1 302 FOUND
* Server nginx/1.5.10 is not blacklisted
< Server: nginx/1.5.10
< Date: Sun, 15 Jun 2014 13:49:48 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< X-Served-By: app17
< X-Render-Time: 0.0241401195526
< Content-Language: en
< ETag: "d41d8cd98f00b204e9800998ecf8427e"
< Location: https://bbuseruploads.s3.amazonaws.com/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz?Signature=Nx8dVR2R2McG31HN%2BSrKAZVowbw%3D&Expires=1402841950&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82
< Cache-Control: max-age=0
< X-Request-Count: 96
< Expires: Sun, 15 Jun 2014 13:49:48 GMT
< Vary: Accept-Language, Cookie
< X-Frame-Options: SAMEORIGIN
< Last-Modified: Sun, 15 Jun 2014 13:49:48 GMT
< X-Static-Version: 67ff06eafbf8
< X-Version: 67ff06eafbf8
< Strict-Transport-Security: max-age=31536000
< X-Content-Type-Options: nosniff
< 
* Connection #0 to host bitbucket.org left intact
$ wget --verbose https://bitbucket.org/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz
--2014-06-15 22:49:59--  https://bitbucket.org/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz
Resolving bitbucket.org (bitbucket.org)... 131.103.20.167, 131.103.20.168
Connecting to bitbucket.org (bitbucket.org)|131.103.20.167|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://bbuseruploads.s3.amazonaws.com/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz?Signature=Nx8dVR2R2McG31HN%2BSrKAZVowbw%3D&Expires=1402841950&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82 [following]
--2014-06-15 22:50:00--  https://bbuseruploads.s3.amazonaws.com/libkkc/libkkc/downloads/libkkc-0.3.3.tar.gz?Signature=Nx8dVR2R2McG31HN%2BSrKAZVowbw%3D&Expires=1402841950&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82
Resolving bbuseruploads.s3.amazonaws.com (bbuseruploads.s3.amazonaws.com)... 207.171.185.201
Connecting to bbuseruploads.s3.amazonaws.com (bbuseruploads.s3.amazonaws.com)|207.171.185.201|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1388989 (1.3M) [application/x-tar]
Saving to: ‘libkkc-0.3.3.tar.gz’

100%[======================================>] 1,388,989    920KB/s   in 1.5s   

2014-06-15 22:50:02 (920 KB/s) - ‘libkkc-0.3.3.tar.gz’ saved [1388989/1388989]



More information about the devscripts-devel mailing list