Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1796

Not all writeCookieValue functions honor the tapestry.default-cookie-max-age symbol

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.14
    • 5.0.15
    • Core Components
    • None

    Description

      In org.apache.tapestry.internal.services.CookiesImpl, the functions

      public void writeCookieValue(String name, String value, String path)
      public void writeDomainCookieValue(String name, String value, String domain)
      public void writeCookieValue(String name, String value, String path, String domain)

      all need the line

      cookie.setMaxAge(_defaultMaxAge);

      ...otherwise, they just set transient cookies, which doesn't appear to be the intended behavior, and is certainly not consistant behavior.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            njlnjl Ned Jackson Lovely
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment