The class org.apache.axis2.transport.http.AbstractHTTPSender contains a boolean flag isAllowedRetry, initally set to false.
In class HTTPSender this flag is propagated to the AxisRequestEntity used by the PostMethod (or PutMethod).
However, this is done BEFORE executeMethod(...) is called on AbstractHTTPSender.
Part of executeMethod(...) is to retrieve the HostConfiguration, which in turn includes processing the authentication information.
Now, the problem is that isAllowedRetry might change in setAuthenticationInfo(...), but this change is NEVER propagated to the AxisRequestEntity.
AxisRequestEntity does not even allow to change parameters once it has been created.
Thanks in advance for fixing.