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

Generate Set-Cookie from the SessionCookieConfig may not include additional attributes #28431

Closed
pmd1nh opened this issue May 15, 2024 · 0 comments · Fixed by #28432
Closed
Assignees
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:24006 team:Sirius

Comments

@pmd1nh
Copy link
Member

pmd1nh commented May 15, 2024

Describe the bug

Session-config attributes setting in web.xml are not included in the response Set-Cookie

Steps to Reproduce
1.
In web.xml, define

<session-config>
       <cookie-config>
         <name>DEBUG-SESSION</name>
         <http-only>false</http-only>
         <secure>true</secure>
         <attribute>
             <attribute-name>TestName</attribute-name>
             <attribute-value>TestValue</attribute-value>
         </attribute>
       </cookie-config>
   </session-config>
  1. Application servlet/jsp
    request.getSession(true)

Expected behavior
Response Set-Cookie should include all the configured <attribute-name> and <attribute-value>

Diagnostic information:

  • OpenLiberty Version: all Servlet 6.0 until this is fixed.
  • Affected feature(s) [servlet]
  • Java Version: [11]
  • server.xml configuration (WITHOUT sensitive information like passwords)

Additional context
None

@pmd1nh pmd1nh self-assigned this May 15, 2024
@pmd1nh pmd1nh added the release bug This bug is present in a released version of Open Liberty label May 15, 2024
@pmd1nh pmd1nh changed the title Generate Set-Cookie from the SessionCookieConfig Generate Set-Cookie from the SessionCookieConfig may not include additionl attributes May 15, 2024
@pmd1nh pmd1nh changed the title Generate Set-Cookie from the SessionCookieConfig may not include additionl attributes Generate Set-Cookie from the SessionCookieConfig may not include additional attributes May 15, 2024
@volosied volosied added this to General Issues in Web Tier Team via automation May 15, 2024
Web Tier Team automation moved this from General Issues to Completed Tasks May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:24006 team:Sirius
Projects
Archived in project
Web Tier Team
  
Completed Tasks
3 participants