[
https://issues.apache.org/jira/browse/WAGON-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov updated WAGON-476:
---------------------------------
Comment: was deleted
(was: Resolved with
[e707a2691e74524a555ea7b7a2fa51d02f827635|https://git-wip-us.apache.org/repos/asf?p=maven-wagon.git;a=commit;h=e707a2691e74524a555ea7b7a2fa51d02f827635].)
> HTTP Provider follows redirects on PUT and may change request method
> --------------------------------------------------------------------
>
> Key: WAGON-476
> URL: https://issues.apache.org/jira/browse/WAGON-476
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-http
> Affects Versions: 2.11
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Fix For: 2.12
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)