Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Tue, 22 Feb 2005 1:50 AM
there is an existing bug for testing md5s
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1536
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1536
Summary: when tryin to download a dep jar, Maven saves HTML error page to
jar file
Type: Bug
Status: Closed
Priority: Major
Resolution: DUPLICATE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
core
Versions:
1.0.2
Assignee:
Reporter: Ian Springer
Created: Tue, 14 Dec 2004 3:20 PM
Updated: Tue, 22 Feb 2005 1:50 AM
Environment: n/a
Description:
In C:\Documents and Settings\ips\.maven\repository\maven\jars\, I noticed the
following two files, that Maven 1.0.2 just downloaded:
12/14/2004 02:57 PM 186 maven-1.0.2.jar
12/14/2004 02:57 PM 186 maven-1.0.2.jar.md5
I noticed the size of the jar file looked wrong. So I looked at its contents,
and here's what's in it:
<html>
<body>
<p>
ibiblio is currently experiencing technical difficulties.
</p>
<p>
We apologize for the inconvenience and hope to have
systems back online soon.
</p>
</body>
</html>
So I tried manually downloading the file, and sure enough the ibiblio Web
server is returning the above HTML blurb. The problem is that it's returning it
with a status code of 200:
C:\Projects\Apache\apollo\trunk\maven-plugins\maven-ajar-plugin>wget
http://ibiblio.org/maven/maven/jars/maven-1.0.2.jar
--15:08:46-- http://ibiblio.org/maven/maven/jars/maven-1.0.2.jar
=> `maven-1.0.2.jar'
Resolving ibiblio.org... 152.2.210.80
Connecting to ibiblio.org[152.2.210.80]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 186 [text/html]
100%[====================================>] 186 --.--K/s
15:08:47 (181.64 KB/s) - `maven-1.0.2.jar' saved [186/186]
The server should really be returning a 3xx or 4xx status code, but it would
still be nice if Maven dealt with this better by doing a quick sanity check on
downloaded md5 and jar files and if their content is totally bogus (e.g. HTML),
then delete them and print an error or warning.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]