Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-350

JSESSIONID cookie path is not set when context has no path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.2.Final, 1.2.0.Beta7
    • 1.1.1.Final
    • None
    • None

      This bug was initially raised against Spring Boot (see https://github.com/spring-projects/spring-boot/issues/2065 for background).

      I assume that the DeploymentInfo class should have an empty string when it represents the root context (mirroring the standard ServletContext.getContextPath rules). When this is the case the cookie created for the session doesn't include a path attribute.

      I think the problem is that the ServletContextImpl constructor calls sessionCookieConfig.setPath(deploymentInfo.getContextPath());. It should probably only do this if the context path is not empty.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              pwebb-1 Phillip Webb (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: