You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@infra.apache.org by "David Blevins (JIRA)" <ji...@apache.org> on 2009/03/20 02:17:50 UTC
[jira] Created: (INFRA-1944) http redirects to https result in
corrupt maven-metadata-apache.snapshot.repository.xml files
http redirects to https result in corrupt maven-metadata-apache.snapshot.repository.xml files
---------------------------------------------------------------------------------------------
Key: INFRA-1944
URL: https://issues.apache.org/jira/browse/INFRA-1944
Project: Infrastructure
Issue Type: Bug
Security Level: public (Regular issues)
Components: Nexus
Reporter: David Blevins
Assignee: Brian Fox
Either repository.apache.org needs to get updated to support http or the maven set of tools needs to understand the HTTP 302 redirect. Currently if you specify http vs https as your snapshot repo you get corrupt maven-metadata-apache.snapshot.repository.xml files that look like this:
{noformmat}
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-core/3.1.1-SNAPSHOT/maven-metadata.xml">here</a>.</p>
<hr>
<address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7d DAV/2 Server at repository.apache.org Port 80</address>
</body></html>
{noformmat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (INFRA-1944) http redirects to https result in
corrupt maven-metadata-apache.snapshot.repository.xml files
Posted by "Brian Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689786#action_12689786 ]
Brian Fox commented on INFRA-1944:
----------------------------------
I need to tweak the rules for the following as well:
Links on http://repository.apache.org/snapshots are invalid, they are
missing "snapshots" part. This is error only in the root of the repository,
once in some directory e.g. "http://repository.apache.org/snapshots/org",
links work well.
> http redirects to https result in corrupt maven-metadata-apache.snapshot.repository.xml files
> ---------------------------------------------------------------------------------------------
>
> Key: INFRA-1944
> URL: https://issues.apache.org/jira/browse/INFRA-1944
> Project: Infrastructure
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Nexus
> Reporter: David Blevins
> Assignee: Brian Fox
>
> Either repository.apache.org needs to get updated to support http or the maven set of tools needs to understand the HTTP 302 redirect. Currently if you specify http vs https as your snapshot repo you get corrupt maven-metadata-apache.snapshot.repository.xml files that look like this:
> {noformmat}
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-core/3.1.1-SNAPSHOT/maven-metadata.xml">here</a>.</p>
> <hr>
> <address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7d DAV/2 Server at repository.apache.org Port 80</address>
> </body></html>
> {noformmat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (INFRA-1944) http redirects to https result in
corrupt maven-metadata-apache.snapshot.repository.xml files
Posted by "Brian Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683735#action_12683735 ]
Brian Fox commented on INFRA-1944:
----------------------------------
What url exactly did you specify in your pom or settings? The rewrite rules allow http://repository.apache.org/snapshots/.* though http, but everything else must be authenticated and thus https. It looks like there is a problem with the rewrite rules that didn't like whatever you were using.
> http redirects to https result in corrupt maven-metadata-apache.snapshot.repository.xml files
> ---------------------------------------------------------------------------------------------
>
> Key: INFRA-1944
> URL: https://issues.apache.org/jira/browse/INFRA-1944
> Project: Infrastructure
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Nexus
> Reporter: David Blevins
> Assignee: Brian Fox
>
> Either repository.apache.org needs to get updated to support http or the maven set of tools needs to understand the HTTP 302 redirect. Currently if you specify http vs https as your snapshot repo you get corrupt maven-metadata-apache.snapshot.repository.xml files that look like this:
> {noformmat}
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-core/3.1.1-SNAPSHOT/maven-metadata.xml">here</a>.</p>
> <hr>
> <address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7d DAV/2 Server at repository.apache.org Port 80</address>
> </body></html>
> {noformmat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (INFRA-1944) http redirects to https result in
corrupt maven-metadata-apache.snapshot.repository.xml files
Posted by "Brian Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683931#action_12683931 ]
Brian Fox commented on INFRA-1944:
----------------------------------
Ok fair enough, i'll tweak those rules when i upgrade Nexus to 1.3.1 to minimize any downtime.
> http redirects to https result in corrupt maven-metadata-apache.snapshot.repository.xml files
> ---------------------------------------------------------------------------------------------
>
> Key: INFRA-1944
> URL: https://issues.apache.org/jira/browse/INFRA-1944
> Project: Infrastructure
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Nexus
> Reporter: David Blevins
> Assignee: Brian Fox
>
> Either repository.apache.org needs to get updated to support http or the maven set of tools needs to understand the HTTP 302 redirect. Currently if you specify http vs https as your snapshot repo you get corrupt maven-metadata-apache.snapshot.repository.xml files that look like this:
> {noformmat}
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-core/3.1.1-SNAPSHOT/maven-metadata.xml">here</a>.</p>
> <hr>
> <address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7d DAV/2 Server at repository.apache.org Port 80</address>
> </body></html>
> {noformmat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (INFRA-1944) http redirects to https result in
corrupt maven-metadata-apache.snapshot.repository.xml files
Posted by "David Blevins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683929#action_12683929 ]
David Blevins commented on INFRA-1944:
--------------------------------------
Looks like specifying 'http://repository.apache.org/content/repositories/snapshots/' as the snapshot repository location is the culprit. I'll update to the shorter 'http://repository.apache.org/snapshots/' but it seems fine to setup the rewrite rules to let that url through http as well. I had forgotten the snapshot url and logged into Nexus to find it. I suspect it might be a common mistake.
> http redirects to https result in corrupt maven-metadata-apache.snapshot.repository.xml files
> ---------------------------------------------------------------------------------------------
>
> Key: INFRA-1944
> URL: https://issues.apache.org/jira/browse/INFRA-1944
> Project: Infrastructure
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Nexus
> Reporter: David Blevins
> Assignee: Brian Fox
>
> Either repository.apache.org needs to get updated to support http or the maven set of tools needs to understand the HTTP 302 redirect. Currently if you specify http vs https as your snapshot repo you get corrupt maven-metadata-apache.snapshot.repository.xml files that look like this:
> {noformmat}
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-core/3.1.1-SNAPSHOT/maven-metadata.xml">here</a>.</p>
> <hr>
> <address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7d DAV/2 Server at repository.apache.org Port 80</address>
> </body></html>
> {noformmat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (INFRA-1944) http redirects to https result in
corrupt maven-metadata-apache.snapshot.repository.xml files
Posted by "Brian Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Fox closed INFRA-1944.
----------------------------
Resolution: Fixed
fixed as INFRA-2492
> http redirects to https result in corrupt maven-metadata-apache.snapshot.repository.xml files
> ---------------------------------------------------------------------------------------------
>
> Key: INFRA-1944
> URL: https://issues.apache.org/jira/browse/INFRA-1944
> Project: Infrastructure
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Nexus
> Reporter: David Blevins
> Assignee: Brian Fox
>
> Either repository.apache.org needs to get updated to support http or the maven set of tools needs to understand the HTTP 302 redirect. Currently if you specify http vs https as your snapshot repo you get corrupt maven-metadata-apache.snapshot.repository.xml files that look like this:
> {noformmat}
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/openejb-core/3.1.1-SNAPSHOT/maven-metadata.xml">here</a>.</p>
> <hr>
> <address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7d DAV/2 Server at repository.apache.org Port 80</address>
> </body></html>
> {noformmat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.