[ 
https://issues.apache.org/jira/browse/KNOX-3599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149866#comment-18149866
 ] 

ASF subversion and git services commented on KNOX-3599:
-------------------------------------------------------

Commit 9bcc6afb2c3a68901f89860171213fbdccdba0ff in knox's branch 
refs/heads/master from bonampak
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=9bcc6afb2 ]

KNOX-3599: Write empty pac4j session cookie instead of "null" (#1530)

When pac4j clears a session value with set(key, null), KnoxSessionStore must 
emit an empty-value cookie.
Since KNOX-3148 SetCookieHeader wrote
the literal "null" instead. Write a null value as empty, as before.

> 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
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)

Reply via email to