axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anjana Fernando (JIRA)" <>
Subject [jira] [Updated] (AXIS2-5477) Incorrect Behavior in HTTP Request Header Retrieval from MessageContext
Date Sun, 20 Jan 2013 07:42:13 GMT


Anjana Fernando updated AXIS2-5477:


I've re-written the class "org.apache.axis2.transport.http.TransportHeaders" to fix the above
issue, and is attached here.
> Incorrect Behavior in HTTP Request Header Retrieval from MessageContext
> -----------------------------------------------------------------------
>                 Key: AXIS2-5477
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.6.2
>            Reporter: Anjana Fernando
>         Attachments:
> When getting HTTP transport header map from the message context, the case in-sensitiveness
is not retained. Basically, the class org.apache.axis2.transport.http.TransportHeaders has
an incorrect behavior, where it loads all the headers into an internal Map in the init() method
and subsequent calls to get() will be incorrect, specially where in Tomcat, when asking for
the list of header names, it returns everything in lower case, so if a user ask for a header
like "Host", it will not work, because TransportHeaders class internal map will have an entry
called "host", if the init() is not called, this will work, because it will directly call
request.getHeader() .. which would work for any combination, because that operation is not
case sensitive. 
> The above init() method of TransportHeaders class is called for operations like add/size/remove
operations, so if any such method method is called, the get() operations after that will most
probably be incorrect. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message