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

HTTP Provider follows redirects on PUT and may change request method

    XMLWordPrintableJSON

Details

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

    Description

      By default HttpClient follows redirects with DefaultRedirectStrategy when nothing is configured or redirects aren't explicitly disabled. While this is fine for HEAD or GET, this causes errors at runtime and in tests for PUT requests. AbstractHttpClientWagon#put() handles redirects manually, but they never arrive there because the client automatically follows them and may – dependend on the status code – change request method, resulting in Not Found and not a re-PUT.

      HttpClient-side redirect handling must be disabled for PUT requests and handled with the given code.

      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: