Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-277

HttpClient wagon (wagon-http) uploads all files twice when preemptive authentication is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-beta-6
    • 2.0
    • wagon-http
    • None

    Description

      This causes timeouts and tends to cause invalid checksums for anything that attaches an observer to the stream or connection (Maven does). It seems that the Sun (lightweight-http) wagon sends the first file twice, then caches the authentication after a challenge and uses preemptive auth from then on. This wagon should probably take steps to approximate this strategy, or possibly even improve on it.

      For an example of this, try deploying any artifact to a normal http repository (Nexus uses bare HTTP PUT, for instance) with Maven 2.2.0, and watch the checksums or logs to see how the transfer takes place.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              jdcasey John Dennis Casey
              Votes:
              12 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: