Maven Wagon
  1. Maven Wagon
  2. WAGON-346

LightWeight http wagon not thread-safe

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1, 2.0
    • Component/s: wagon-http-lightweight
    • Labels:
      None
    • Environment:
      maven 3 with Aether

      Description

      Aether (maven3) by default parallelized metadata resolution on 4 threads (aether.metadataResolver.threads) and artifacts downloading on 5 (maven.artifact.threads).
      In such context, Wagon is not used sequentially.
      LightWeightHttpWagon is designed for mono-thread, sequential usage. It rely on system properties and on setting/resetting java.net.Authenticator singleton.
      The result is that, in some cases (typically : when settings defines many repositories with various credentials), credentials may not apply and download will fail

      A potential fix is

      • to use Java5 URL.openConnection(Proxy) instead of using system properties
      • to use a shared, singleton java.net.Authenticator that lookup repositories to match the requested URL

        Issue Links

          Activity

          nicolas de loof created issue -
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue is related to WAGON-308 [ WAGON-308 ]
          nicolas de loof made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 2.0 [ 17379 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 1.x [ 13408 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:30:21 UTC 2015 [ 1428240621566 ]
          Mark Thomas made changes -
          Workflow jira [ 12729070 ] Default workflow, editable Closed status [ 12765186 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:53:53 UTC 2015 [ 1428285233407 ]
          Mark Thomas made changes -
          Workflow jira [ 12966960 ] Default workflow, editable Closed status [ 13003170 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              nicolas de loof
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development