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

Preemptive auth with HTTP Provider may fail because BasicScheme is added as completed=true to the AuthCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.11
    • 2.12
    • wagon-http
    • None
    • Important

    Description

      Currently, to prepopulate preemptive authentication for target and proxy, BasicScheme is created and processChallenge() is called. Then it is added to the AuthCache. This causes two issues:

      1. The reference documentation never shows to do so.
      2. With the Jetty 8 upgrade of all tests several unit tests failed because the scheme was set to completed=true initially and never reacted on requested preemptive auth or simply obstained from responding to 401 with proper credentials altogether.

      This issue has been found during WAGON-474.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: