You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Joe Sunday (JIRA)" <ji...@apache.org> on 2007/09/03 07:09:18 UTC

[jira] Created: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
---------------------------------------------------------------------

                 Key: CXF-966
                 URL: https://issues.apache.org/jira/browse/CXF-966
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.0.1, 2.1
            Reporter: Joe Sunday


When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the session id from the server if the cookie is named JSESSIONID. It does not track the session id if the server is using a different cookie name.

It should track all Set-Cookie headers from the server.

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


Re: [jira] Created: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

Posted by "Asad (Landslide)" <as...@yahoo.com>.
There is a problem in the current session-based architecture due to which
sessions of different users are getting mixed up on client side when client
set session_maintain_property = true 

BindingProvider bp = (BindingProvider)port; 
bp.getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true); 

so client always send JSESSIONID back to server, is always the last session
on client side. 






JIRA jira@apache.org wrote:
> 
> SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
> ---------------------------------------------------------------------
> 
>                  Key: CXF-966
>                  URL: https://issues.apache.org/jira/browse/CXF-966
>              Project: CXF
>           Issue Type: Bug
>           Components: Transports
>     Affects Versions: 2.0.1, 2.1
>             Reporter: Joe Sunday
> 
> 
> When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the
> session id from the server if the cookie is named JSESSIONID. It does not
> track the session id if the server is using a different cookie name.
> 
> It should track all Set-Cookie headers from the server.
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Created%3A-%28CXF-966%29-SESSION_MAINTAIN_PROPERTY-doesn%27t-track-cookies-other-than-JSESSIONID-tp12456478p18528230.html
Sent from the cxf-issues mailing list archive at Nabble.com.


[jira] Assigned: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

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

willem Jiang reassigned CXF-966:
--------------------------------

    Assignee: willem Jiang

> SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
> ---------------------------------------------------------------------
>
>                 Key: CXF-966
>                 URL: https://issues.apache.org/jira/browse/CXF-966
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.1, 2.1
>            Reporter: Joe Sunday
>            Assignee: willem Jiang
>         Attachments: session-maintain.patch
>
>
> When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the session id from the server if the cookie is named JSESSIONID. It does not track the session id if the server is using a different cookie name.
> It should track all Set-Cookie headers from the server.

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


[jira] Commented: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524487 ] 

willem Jiang commented on CXF-966:
----------------------------------

It take me more  ten minutes to apply your patch manually, also fixed some check style error.  :)
Next time please modify the code with code that download from svn trunk and use the svn diff to generate the patch. 
Anyway thanks for you patch.
I will commit it after the all testes are passed.

> SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
> ---------------------------------------------------------------------
>
>                 Key: CXF-966
>                 URL: https://issues.apache.org/jira/browse/CXF-966
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.1, 2.1
>            Reporter: Joe Sunday
>            Assignee: willem Jiang
>         Attachments: session-maintain.patch
>
>
> When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the session id from the server if the cookie is named JSESSIONID. It does not track the session id if the server is using a different cookie name.
> It should track all Set-Cookie headers from the server.

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


[jira] Resolved: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

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

willem Jiang resolved CXF-966.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

The patch was applied in the revision 572273

> SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
> ---------------------------------------------------------------------
>
>                 Key: CXF-966
>                 URL: https://issues.apache.org/jira/browse/CXF-966
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.1, 2.1
>            Reporter: Joe Sunday
>            Assignee: willem Jiang
>             Fix For: 2.1
>
>         Attachments: session-maintain.patch
>
>
> When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the session id from the server if the cookie is named JSESSIONID. It does not track the session id if the server is using a different cookie name.
> It should track all Set-Cookie headers from the server.

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


[jira] Updated: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

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

Daniel Kulp updated CXF-966:
----------------------------

    Fix Version/s:     (was: 2.1)
                   2.0.2

> SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
> ---------------------------------------------------------------------
>
>                 Key: CXF-966
>                 URL: https://issues.apache.org/jira/browse/CXF-966
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.1, 2.1
>            Reporter: Joe Sunday
>            Assignee: willem Jiang
>             Fix For: 2.0.2
>
>         Attachments: session-maintain.patch
>
>
> When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the session id from the server if the cookie is named JSESSIONID. It does not track the session id if the server is using a different cookie name.
> It should track all Set-Cookie headers from the server.

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


[jira] Updated: (CXF-966) SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID

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

Joe Sunday updated CXF-966:
---------------------------

    Attachment: session-maintain.patch

Patch against 2.0.1 to track all cookies on a client session

> SESSION_MAINTAIN_PROPERTY doesn't track cookies other than JSESSIONID
> ---------------------------------------------------------------------
>
>                 Key: CXF-966
>                 URL: https://issues.apache.org/jira/browse/CXF-966
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.1, 2.1
>            Reporter: Joe Sunday
>         Attachments: session-maintain.patch
>
>
> When using CXF as a client, SESSION_MAINTAIN_PROPERTY only tracks the session id from the server if the cookie is named JSESSIONID. It does not track the session id if the server is using a different cookie name.
> It should track all Set-Cookie headers from the server.

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