Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Cookie handling #625

Open
markusstoll opened this issue Jul 18, 2022 · 0 comments
Open

Problem with Cookie handling #625

markusstoll opened this issue Jul 18, 2022 · 0 comments

Comments

@markusstoll
Copy link

markusstoll commented Jul 18, 2022

Hi,

with jaxws-rt versions 3.0.2 and 4.0.0 I observed a problem with a stateful SOAP client, which I activated using

((BindingProvider) mySoapClient).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE);

With the first call my soap client got multiple cookies from the server like this:

set-cookie: cookie1=val1; version="1"; path=/cgi-bin/path...
set-cookie: cookie2=val2; version="1"; path=/cgi-bin/path...

In the subsequent call my SOAP client now sends these cookies this way:

Cookie: $Version="1"
Cookie: cookie2="val2";$Path="/cgi-bin/path...";$Domain="localhost.local"
Cookie: cookie1="val1";$Path="/cgi-cgi-bin/path...";$Domain="localhost.local"

which (afaik) is wrong in 2 ways:

The former jaxws implementation which was part of Java 8 did work fine. So this is preventing me from Upgrading to Java 11 or newer.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant