This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
JSON generates cookie that it cannot read #17
Comments
it seems that a cookie parsing is broken, decode does not handle %2C The bug is in private String decode(String encoded)
|
workaround:
Btw I do not understand these converters concept as it is used for decoding only. |
tholu
pushed a commit
to tholu/java-cookie
that referenced
this issue
Feb 28, 2019
- Implement Integration test to verify the issue
I'm have prepared a PR with an integration test that tests generating and reading simple as well as JSON cookies. I can reproduce the issue, however it is already solved with #21 (this fix is included in the new integration test PR). |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
LoginUtils.PageStyleCookie cookie = new LoginUtils.PageStyleCookie(lefLogo, rightLogo, css);
cookies.set(LoginUtils.COOKIE_STYLES, cookie);
PageStyleCookie stylesCookie = cookies.get(COOKIE_STYLES, PageStyleCookie.class);
Failed to parse JSON of cookie: {"logoLeft":"aa.png"%2C"logoRight":"aa.png"%2C"style":"main.css"}
The text was updated successfully, but these errors were encountered: