axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-1059) HTTPTransport generates duplicate "Authentication: " headers
Date Mon, 08 Nov 2010 05:25:06 GMT

    [ https://issues.apache.org/jira/browse/AXISCPP-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929454#action_12929454
] 

nadir amra commented on AXISCPP-1059:
-------------------------------------

Forgot to mention changes are in revision (1032462): http://svn.apache.org/viewvc?view=revision&revision=1032462

> HTTPTransport generates duplicate "Authentication: " headers
> ------------------------------------------------------------
>
>                 Key: AXISCPP-1059
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1059
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Transport (axis3)
>    Affects Versions: current (nightly)
>         Environment: Any
>            Reporter: Michael Chen
>            Assignee: nadir amra
>             Fix For: current (nightly)
>
>
> Source file "axis/trunk/c/src/transport/axis3/HTTPTransport.cpp", line 360.
> When generateHTTPHeaders() calls setTransportProperty("Authorization", ...), the later
does NOT replace existing "Authentication: " header but add another one.  My application uses
the same stub to call the same service repeatedly.  This resulted in increasingly more and
more duplicate "Authentication: " header being sent to the service.  After a while, the service
refuses the request.
> The common practice is that "set" replaces duplicate key/value pairs, while "add" implies
the acceptance of duplicate keys.  setTransportProperty(const char*, const char*) only remove
duplicates of 3 know headers, "Connection", "Content-Length" and "SOAPAction".  This is a
design flaw.  There should be two sibling member functions:
> setTransportProperty(const char*, const char*)
> addTransportProperty(const char*, const char*)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message