You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rajat Bhushan (JIRA)" <ji...@apache.org> on 2008/05/02 12:26:55 UTC

[jira] Created: (AXIS2-3776) CommonsTransportHeaders does not store 2 cookies due to map implementation

CommonsTransportHeaders does not store 2 cookies due to map implementation
--------------------------------------------------------------------------

                 Key: AXIS2-3776
                 URL: https://issues.apache.org/jira/browse/AXIS2-3776
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
            Reporter: Rajat Bhushan


 The CommonsTransportHeaders implementation as a Map does not allow two cookies with same key "Set-Cookie" to co-exist. I am facing a scenario where my .NET web service at Microsoft Project Web Access returns 2 cookies with header value "Set-Cookie". But one of them is overwritten due to the map implementation.

I think this can be fixed if we check that if a key is encountered that already exists in the map, then we can change the value for that key as "header=value1;header=value2". So if there are multiple entries with same header, the programmer using it can handle the key and not actually lose the information.

Files to be edited : kernel\src\org\apache\axis2\transport\http\CommonsTransportHeaders.java

Workaround : none

Effect : loss of cookie

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3776) CommonsTransportHeaders does not store 2 cookies due to map implementation

Posted by "Rajat Bhushan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594145#action_12594145 ] 

Rajat Bhushan commented on AXIS2-3776:
--------------------------------------

Michele,

  In my case, I have some web services deployed on Project Web Access which return me 2 cookies for authentication:

-- Set-Cookie : .ASPXAUTH=F840DA6EF334612FAFA04B78F69C61EDE31AB2954808077F95000ED65EDA54A7FB2FAE150F045C525AB1CD4A243BF3643CF18FBD90F2DDBE3C195D633506AC0B9C8F394C1BD3B3F9014CD6548BB9C372B2268FC4CC3E115FC23456F620BC6C80; path=/; domain=localhost.local

-- Set-Cookie	:  PWA656ae0bc7a484ef3aa7f53a181e9221eASPNETSQLMEMBERSHIPPROVIDER_RAJAT BHUSHAN=505E30E2D6975360109B016EAE5B824341AA696C336A5319D072463F22710D1B263AA08BC36E572CEEB775757AC67C76008D4D7EB07ABDF9BBC0E6A72A9AFC6ABE835913295748DF9F01582AD7BC29F63E7A9FE5149883E650C7DB8810302676E177318796F84325201BD8B2382C9EC2AC2EEA170C1F6F4A2404CA6916A086CB464683A0BD4141FB6F3D77668EC3CAC99BF1FF7F8A3F8263172610195F9E62B5ECFF2CDCF594EAC98B90F3FB0118A7146C99F7E7D655F3F3FBB254E80D787DDAC9BB1311A3FBD0E8010CCEFCDB86F6E836400DE894EE610078A9522A54E1303689D95C62AD57D95FCC69A7A95941E418DE17CDC4F699F0CA13A5F5AF5EA375CB4BD08B27569661553AA5D9E88B0A8B102737373D9AB9F57A1990F55CAF0AE94A6B1CE5ACB3F3AD5C40BF88331C2F9DC9EEF9ABC4F465AFC82E77EB4207AA0F13FD3D19BB50954C928FB4B27CED6A9BB575034818FD11CAD8EFFA092425E7BF0956BB8CE8C37B9818F3ED935162A3DAD6A10F3C3F0341C80FAA90C7477CBB340374A3E7F12739D439B8E03D58732FCF1BDA22BBCCB30ACDC84E4DD2EF6CB3D66D9EC9059B8D962F8A9D9A70073987B4B7F24C5486C69FF65F1169375BD705018CD726290929D59558E2FD06F4025BFD6CF3ECCD7DA07C1F49B0FC5523CBDB7CC09FC582837434DFFC49832695136E530A976B4FB7596C7D31106D0F7D9A8CA27AF11E2DE463196D4F48B4BCC341E3F11206F3DF860569D95C8718C10B99BEECBBB6C3EBF719F61C42890296BF2F3977A84CDFC7FB794FFE4BB633B5367908B683; expires=Tue Apr 29 16:42:36 IST 2008; path=/; domain=localhost.local

          Since both the cookies have same key attribute "Set-Cookie", one of them gets overwritten due to the map implementation and unfortunately it is the one I need to access.

          In Axis, accessing multiple cookies was possible but not in Axis2.


Rajat


> CommonsTransportHeaders does not store 2 cookies due to map implementation
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-3776
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3776
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>            Reporter: Rajat Bhushan
>
>  The CommonsTransportHeaders implementation as a Map does not allow two cookies with same key "Set-Cookie" to co-exist. I am facing a scenario where my .NET web service at Microsoft Project Web Access returns 2 cookies with header value "Set-Cookie". But one of them is overwritten due to the map implementation.
> I think this can be fixed if we check that if a key is encountered that already exists in the map, then we can change the value for that key as "header=value1;header=value2". So if there are multiple entries with same header, the programmer using it can handle the key and not actually lose the information.
> Files to be edited : kernel\src\org\apache\axis2\transport\http\CommonsTransportHeaders.java
> Workaround : none
> Effect : loss of cookie

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-3776) CommonsTransportHeaders does not store 2 cookies due to map implementation

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3776:
----------------------------------------

    Assignee: Deepal Jayasinghe

> CommonsTransportHeaders does not store 2 cookies due to map implementation
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-3776
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3776
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>            Reporter: Rajat Bhushan
>            Assignee: Deepal Jayasinghe
>
>  The CommonsTransportHeaders implementation as a Map does not allow two cookies with same key "Set-Cookie" to co-exist. I am facing a scenario where my .NET web service at Microsoft Project Web Access returns 2 cookies with header value "Set-Cookie". But one of them is overwritten due to the map implementation.
> I think this can be fixed if we check that if a key is encountered that already exists in the map, then we can change the value for that key as "header=value1;header=value2". So if there are multiple entries with same header, the programmer using it can handle the key and not actually lose the information.
> Files to be edited : kernel\src\org\apache\axis2\transport\http\CommonsTransportHeaders.java
> Workaround : none
> Effect : loss of cookie

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org