Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2537

ApplicationStateManagerImpl.getIfExists() fails when session is invalid (on Jetty, at least)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4.1
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      An IllegalStateException is thrown when calling ApplicationStateManagerImpl.getIfExists() on an invalid session. I would expect the method to catch the exception and return null in this case.

      Stack trace (top only):

      - org.eclipse.jetty.server.session.AbstractSession.checkValid(AbstractSession.java:106)
        - org.eclipse.jetty.server.session.AbstractSession.getAttribute(AbstractSession.java:459)
        - org.apache.tapestry5.internal.services.SessionImpl.getAttribute(SessionImpl.java:52)
        - org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy.exists(SessionApplicationStatePersistenceStrategy.java:80)
        - $ApplicationStatePersistenceStrategy_b43cfdb8299.exists(Unknown Source)
        - org.apache.tapestry5.internal.services.ApplicationStateManagerImpl$ApplicationStateAdapter.exists(ApplicationStateManagerImpl.java:60)
        - org.apache.tapestry5.internal.services.ApplicationStateManagerImpl.getIfExists(ApplicationStateManagerImpl.java:140)
      

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              annorax I D
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: