Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-8156

Short-circuit PluginUserSession in case a not live jcr session is encountered

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Fixed
    • None
    • 2.28.00
    • None
    • Sprint 85

    Description

      Currently, there is code something like

      public Session getJcrSession() {
      Session session = getJcrSessionInternal();
      if (session == null) {

      if getJcrSessionInternal() return null, a fallback session is returned in case there are fallbackcredentials.

      getJcrSessionInternal() returns the jcrSessionModel.getObject() and if not null also does a check whether the session is live. In case the session is not live, the entire request should be short circuited as this is an illegal state

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: