Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2884

WildFly issuing new cookie for every request, when faces view is not directly in root (/ )

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • 8.0.0.Final
    • 8.0.0.CR1
    • Web (Undertow)
    • None

    Description

      Hello everyone.

      I have seen possibly similar issues, but people just aren't able to reproduce them anymore and they seem to be closed without further inspection. Maybe this is the same problem.

      I started seeing a problem in a new application I'm developing. For views such as "/view.xhtml" everything is working fine. But if I move the view to another directory, e.g. "/admin/view.xtml", I get ViewExpiredExceptions when interacting with backing beans.

      Two things:

      • This does not happen if there is already a cookie associated with the session. I.e., I can only reproduce the issue if the first cookie is created by accessing "/admin/view.xhtml". Accessing something in the root and then the other directories works just fine (the server won't send set-cookies again).
      • When accessing "/admin/view.xhtml" new cookies are issued for every .xhtml request. Fetching PrimeFaces .js.xhtml files after the initial page is loaded, for example, triggers new sessions.

      Attachments

        1. test.war
          4.45 MB
          André Prata

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            bugflux André Prata (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: