You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2009/07/10 00:19:22 UTC

[jira] Created: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

[regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
---------------------------------------------------------------------------------------------------------------

                 Key: MNG-4236
                 URL: http://jira.codehaus.org/browse/MNG-4236
             Project: Maven 2
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 2.2.0
            Reporter: John Casey




-- 
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

        

[jira] Commented: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183141#action_183141 ] 

John Casey commented on MNG-4236:
---------------------------------

Captured by brianf. This is running a deploy to Nexus (which uses Jetty) from Maven 2.2.0:

{noformat}
PUT /content/repositories/maven.snapshots/org/apache/empire-db/empire-db/2.0.5-incubating-SNAPSHOT/empire-db-2.0.5-incubating-20090710.000128-1.pom HTTP/1.1

Cache-control: no-cache

Cache-store: no-store

Pragma: no-cache

Expires: 0

Accept-Encoding: gzip

User-Agent: Apache-Maven/2.2 (Java 1.6.0_11; Windows Vista 6.0) maven-artifact/2.2.0

Host: localhost:7777

Content-Length: 1776



<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>empire-db-parent</artifactId>
		<groupId>org.apache.empire-db</groupId>
		<version>2.0.5-incubating-SNAPSHOT</version>
	</parent>
	<groupId>org.apache.empire-db</groupId>
	<artifactId>empire-db</artifactId>
	<packaging>jar</packaging>
	<name>Empire-db Core</name>
	<dependencies>
		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
		<dependency>
		    <groupId>hsqldb</groupId>
		    <artifactId>hsqldb</artifactId>
		    <scope>test</scope>
		</dependency> 
	</dependencies>
</project>
Sent 2167 Bytes
Read 259 bytes from Out
48 54 54 50 2F 31 2E 31 20 34 30 31 20 55 6E 61 75 74 


HTTP/1.1 401 Unauthorized

Date: Fri, 10 Jul 2009 00:02:23 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Set-Cookie: JSESSIONID=6gvq1fcm5b2h;Path=/

WWW-Authenticate: BASIC realm="Sonatype Nexus Repository Manager"

Content-Length: 0

Server: Jetty(6.1.12)




Sent 259 Bytes
Read 2260 bytes from In
50 55 54 20 2F 63 6F 6E 74 65 6E 74 2F 72 65 70 6F 73 

PUT /content/repositories/maven.snapshots/org/apache/empire-db/empire-db/2.0.5-incubating-SNAPSHOT/empire-db-2.0.5-incubating-20090710.000128-1.pom HTTP/1.1

Cache-control: no-cache

Cache-store: no-store

Pragma: no-cache

Expires: 0

Accept-Encoding: gzip

User-Agent: Apache-Maven/2.2 (Java 1.6.0_11; Windows Vista 6.0) maven-artifact/2.2.0

Content-Length: 1776

Authorization: Basic XXXXXXXXXXXXXXX=

Host: localhost:7777

Cookie: $Version=0; JSESSIONID=6gvq1fcm5b2h; $Path=/



<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>empire-db-parent</artifactId>
		<groupId>org.apache.empire-db</groupId>
		<version>2.0.5-incubating-SNAPSHOT</version>
	</parent>
	<groupId>org.apache.empire-db</groupId>
	<artifactId>empire-db</artifactId>
	<packaging>jar</packaging>
	<name>Empire-db Core</name>
	<dependencies>
		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
		<dependency>
		    <groupId>hsqldb</groupId>
		    <artifactId>hsqldb</artifactId>
		    <scope>test</scope>
		</dependency> 
	</dependencies>
</project>
Sent 2260 Bytes
Read 262 bytes from Out
48 54 54 50 2F 31 2E 31 20 32 30 31 20 43 72 65 61 74 
HTTP/1.1 201 Created

Date: Fri, 10 Jul 2009 00:02:23 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Set-Cookie: JSESSIONID=wwkj705f6w4b;Path=/

Content-Length: 0

Date: Fri, 10 Jul 2009 00:02:23 GMT

Accept-Ranges: bytes

Server: Noelios-Restlet-Engine/1.1..1
{noformat}

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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

        

[jira] Commented: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183143#action_183143 ] 

John Casey commented on MNG-4236:
---------------------------------

The difference between httpclient and what the sun HttpURLConnection does seems to be that sun's impl caches authentication and preemptively sends the Authorization header after the first challenge happens. This means that the first transfer happens twice, to trigger the authentication challenge, and then subsequent transfers happen once only with preemptive auth.

We need to look into a way to cache the fact of an auth challenge so we know to authenticate preemptively in the httpclient-driven wagon.

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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

        

[jira] Updated: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MNG-4236:
----------------------------

         Priority: Blocker  (was: Major)
    Fix Version/s: 2.2.1

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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

        

[jira] Commented: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183139#action_183139 ] 

John Casey commented on MNG-4236:
---------------------------------

This seems to be a problem that will definitely affect repository managers that use Jetty: https://fisheye.codehaus.org/browse/JETTY-341 (which, let's face it, is a common configuration).

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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

        

[jira] Closed: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MNG-4236.
---------------------------

      Assignee: John Casey
    Resolution: Fixed

HTTP wagon implementation is selectable for Maven 2.2.1, with the lightweight (Sun-driven, not HttpClient-driven) implementation selected by default. This default is the same as was used for Maven prior to 2.2.0

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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

        

[jira] Commented: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183128#action_183128 ] 

John Casey commented on MNG-4236:
---------------------------------

Need to make sure httpclient-driven http wagon is compliant with the spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html (see section 8.2.3)

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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

        

[jira] Updated: (MNG-4236) [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MNG-4236:
----------------------------

    Comment: was deleted

(was: Captured by brianf. This is running a deploy to Nexus (which uses Jetty) from Maven 2.2.0:

{noformat}
PUT /content/repositories/maven.snapshots/org/apache/empire-db/empire-db/2.0.5-incubating-SNAPSHOT/empire-db-2.0.5-incubating-20090710.000128-1.pom HTTP/1.1

Cache-control: no-cache

Cache-store: no-store

Pragma: no-cache

Expires: 0

Accept-Encoding: gzip

User-Agent: Apache-Maven/2.2 (Java 1.6.0_11; Windows Vista 6.0) maven-artifact/2.2.0

Host: localhost:7777

Content-Length: 1776



<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>empire-db-parent</artifactId>
		<groupId>org.apache.empire-db</groupId>
		<version>2.0.5-incubating-SNAPSHOT</version>
	</parent>
	<groupId>org.apache.empire-db</groupId>
	<artifactId>empire-db</artifactId>
	<packaging>jar</packaging>
	<name>Empire-db Core</name>
	<dependencies>
		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
		<dependency>
		    <groupId>hsqldb</groupId>
		    <artifactId>hsqldb</artifactId>
		    <scope>test</scope>
		</dependency> 
	</dependencies>
</project>
Sent 2167 Bytes
Read 259 bytes from Out
48 54 54 50 2F 31 2E 31 20 34 30 31 20 55 6E 61 75 74 


HTTP/1.1 401 Unauthorized

Date: Fri, 10 Jul 2009 00:02:23 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Set-Cookie: JSESSIONID=6gvq1fcm5b2h;Path=/

WWW-Authenticate: BASIC realm="Sonatype Nexus Repository Manager"

Content-Length: 0

Server: Jetty(6.1.12)




Sent 259 Bytes
Read 2260 bytes from In
50 55 54 20 2F 63 6F 6E 74 65 6E 74 2F 72 65 70 6F 73 

PUT /content/repositories/maven.snapshots/org/apache/empire-db/empire-db/2.0.5-incubating-SNAPSHOT/empire-db-2.0.5-incubating-20090710.000128-1.pom HTTP/1.1

Cache-control: no-cache

Cache-store: no-store

Pragma: no-cache

Expires: 0

Accept-Encoding: gzip

User-Agent: Apache-Maven/2.2 (Java 1.6.0_11; Windows Vista 6.0) maven-artifact/2.2.0

Content-Length: 1776

Authorization: Basic XXXXXXXXXXXXXXX=

Host: localhost:7777

Cookie: $Version=0; JSESSIONID=6gvq1fcm5b2h; $Path=/



<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>empire-db-parent</artifactId>
		<groupId>org.apache.empire-db</groupId>
		<version>2.0.5-incubating-SNAPSHOT</version>
	</parent>
	<groupId>org.apache.empire-db</groupId>
	<artifactId>empire-db</artifactId>
	<packaging>jar</packaging>
	<name>Empire-db Core</name>
	<dependencies>
		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
		<dependency>
		    <groupId>hsqldb</groupId>
		    <artifactId>hsqldb</artifactId>
		    <scope>test</scope>
		</dependency> 
	</dependencies>
</project>
Sent 2260 Bytes
Read 262 bytes from Out
48 54 54 50 2F 31 2E 31 20 32 30 31 20 43 72 65 61 74 
HTTP/1.1 201 Created

Date: Fri, 10 Jul 2009 00:02:23 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Set-Cookie: JSESSIONID=wwkj705f6w4b;Path=/

Content-Length: 0

Date: Fri, 10 Jul 2009 00:02:23 GMT

Accept-Ranges: bytes

Server: Noelios-Restlet-Engine/1.1..1
{noformat})

> [regression] http wagon uploads files twice with Maven 2.2.0 when preemptive auth is disabled (default setting)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4236
>                 URL: http://jira.codehaus.org/browse/MNG-4236
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.0
>            Reporter: John Casey
>            Priority: Blocker
>             Fix For: 2.2.1
>
>


-- 
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