Tamás Marcinkovics created KNOX-3599:
----------------------------------------
Summary: KnoxSessionStore writes "null" instead of an empty cookie
when pac4j clears a session value
Key: KNOX-3599
URL: https://issues.apache.org/jira/browse/KNOX-3599
Project: Apache Knox
Issue Type: Bug
Components: KnoxSSO
Affects Versions: 3.1.0
Reporter: Tamás Marcinkovics
Assignee: Tamás Marcinkovics
KnoxSessionStore is pac4j's cookie-backed session store.
pac4j clears a session value with set(key, null) (also ""), which should give
an empty-value cookie (pac4j.session.<key>=).
Since KNOX-3148, SetCookieHeader writes the value as the literal string "null"
(pac4j.session.<key>=null).
get() would then try to decode "null" as a stored value.
KNOX-3232 worked around this on the read side only.
SetCookieHeader should write a null value as empty, which is what the code did
before KNOX-3148.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)