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

JSESSIONID cookie path is not set when context has no path

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: