Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-4236

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Issue Links

        Activity

        John Casey made changes -
        Field Original Value New Value
        Fix Version/s 2.2.1 [ 15328 ]
        Priority Major [ 3 ] Blocker [ 1 ]
        John Casey made changes -
        Comment [ 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} ]
        Benjamin Bentmann made changes -
        Link This issue relates to MNG-4235 [ MNG-4235 ]
        John Casey made changes -
        Link This issue is related to MNG-4254 [ MNG-4254 ]
        John Casey made changes -
        Link This issue relates to WAGON-277 [ WAGON-277 ]
        John Casey made changes -
        Assignee John Casey [ jdcasey ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            John Casey
            Reporter:
            John Casey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: