You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lee Thompson (JIRA)" <ji...@codehaus.org> on 2009/05/05 17:17:45 UTC

[jira] Reopened: (WAGON-264) compressed tarball download problems

     [ http://jira.codehaus.org/browse/WAGON-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lee Thompson reopened WAGON-264:
--------------------------------


If its a server config issue, its a server config issue that http transport clients know how to deal with (except wagon...)   I'll download expat with CURL, WGET, and Wagon.  Two work, one doesn't.  Same for openssl.  Wagon corrupts compressed tarballs via http/https.






$ mkdir curl wagon wget
$ cd curl
$ wget http://softlayer.dl.sourceforge.net/sourceforge/expat/expat-1.95.8.tar.gz--2009-05-05 10:02:00--  http://softlayer.dl.sourceforge.net/sourceforge/expat/expat-1.95.8.tar.gz
Resolving softlayer.dl.sourceforge.net... 74.86.229.28
Connecting to softlayer.dl.sourceforge.net|74.86.229.28|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 318349 (311K) [application/x-gzip]
Saving to: `expat-1.95.8.tar.gz'

100%[======================================>] 318,349      539K/s   in 0.6s    

2009-05-05 10:02:00 (539 KB/s) - `expat-1.95.8.tar.gz' saved [318349/318349]

$ cd ../wget
$ wget http://softlayer.dl.sourceforge.net/sourceforge/expat/expat-1.95.8.tar.gz--2009-05-05 10:02:10--  http://softlayer.dl.sourceforge.net/sourceforge/expat/expat-1.95.8.tar.gz
Resolving softlayer.dl.sourceforge.net... 74.86.229.28
Connecting to softlayer.dl.sourceforge.net|74.86.229.28|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 318349 (311K) [application/x-gzip]
Saving to: `expat-1.95.8.tar.gz'

100%[======================================>] 318,349      554K/s   in 0.6s    

2009-05-05 10:02:10 (554 KB/s) - `expat-1.95.8.tar.gz' saved [318349/318349]

$ HTTP/1.1 200 OK
-bash: HTTP/1.1: No such file or directory
$ cd ../wagon/
$ mvn wagon:download-single -Dwagon.fromFile=expat-1.98.8.tar.gz -Dwagon.url=http://softlayer.dl.sourceforge.net/sourceforge/expat -Dwagon.toDir=./
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'wagon'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [wagon:download-single] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [wagon:download-single]
[INFO] Downloading: http://softlayer.dl.sourceforge.net/sourceforge/expat/expat-1.98.8.tar.gz to /Users/Lee/junk/downloads/wagon/expat-1.98.8.tar.gz
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue May 05 10:03:59 CDT 2009
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
$ 
$ 
$ cd ..
$ ls -lR
total 0
drwxr-xr-x  3 Lee  Lee  102 May  5 10:02 curl
drwxr-xr-x  3 Lee  Lee  102 May  5 10:03 wagon
drwxr-xr-x  3 Lee  Lee  102 May  5 10:02 wget

./curl:
total 624
-rw-r--r--  1 Lee  Lee  318349 Jul 24  2004 expat-1.95.8.tar.gz

./wagon:
total 72
-rw-r--r--  1 Lee  Lee  34158 May  5 10:03 expat-1.98.8.tar.gz

./wget:
total 624
-rw-r--r--  1 Lee  Lee  318349 Jul 24  2004 expat-1.95.8.tar.gz
$ 


> compressed tarball download problems
> ------------------------------------
>
>                 Key: WAGON-264
>                 URL: http://jira.codehaus.org/browse/WAGON-264
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-http-lightweight
>    Affects Versions: 1.0-beta-2, 1.0-beta-3, 1.0-beta-4, 1.0-beta-5
>            Reporter: Lee Thompson
>            Assignee: John Casey
>             Fix For: 1.0-beta-5
>
>
> HTTP wagon will uncompress tarballs it downloads, sometimes badly.  Downloading openssl results in an unpressed download
> $ mvn -X wagon:download-single -Dwagon.fromFile=openssl-0.9.8k.tar.gz -Dwagon.url=http://www.openssl.org/source -Dwagon.toDir=./
> $ tar tzf openssl-0.9.8k.tar.gz 
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error exit delayed from previous errors
> $ tar tf openssl-0.9.8k.tar.gz | more
> openssl-0.9.8k/apps/
> openssl-0.9.8k/apps/app_rand.c
> Downloading expat results in a corrupted file
> mvn -X wagon:download-single -Dwagon.fromFile=expat-1.98.8.tar.gz -Dwagon.url=http://prdownloads.sourceforge.net/expat -Dwagon.toDir=./
> $ tar tf expat-1.98.8.tar.gz 
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Read 1943 bytes from expat-1.98.8.tar.gz
> tar: Error exit delayed from previous errors

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira