Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-5
-
Fix Version/s: 1.0-beta-6
-
Component/s: wagon-http
-
Labels:None
-
Number of attachments :
Description
In some cases, using non-lightweight http wagon can result in WARNING messages about cookies with an incorrect path. This can be a particular problem where internal rewrite modules change the location of a servlet that expects to be at a different path than the one the browser used to access it.
httpclient configuration options need to be exposed for configuration from the settings.xml in order to allow users to fix this. Simply ignoring cookies is probably not a great option, since some sites do rely on session cookies to maintain authentication, etc. Additionally, there is a wealth of configuration available for httpclient, and exposing a method for configuring this wagon comprehensively should help us head off future concerns about one of the other config options.
Issue Links
- relates to
-
MNG-4165
http session cookies rejected with non-lightweight http wagon (maybe with lightweight one too)
-
Fine-grained control now looks like the following:
Note that you have four configuration sections: all, get, put, and head. These correspond to the HTTP methods used by the http wagon, plus 'all', which supplies configuration for all methods in use.