Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-836

AbstractJcrItem.getSession() throws RepositoryException if the session is not live

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.1.0.Final
    • 2.1.0.Final
    • JCR
    • None

      AbstractJcrItem.getSession() throws RepositoryException if the session is not live - but I just need to obtain the session the Item was created with, no matter whether it is alive or not. Let me check this in my own code.

      Or, to be precise, let Magnolia check it in its LazyContentWrapper.getWrappedContent() method:

      See http://svn.magnolia-cms.com/svn/community/magnolia/tags/magnolia-4.3.5/magnolia-core/src/main/java/info/magnolia/cms/util/LazyContentWrapper.java - there is node.getJCRNode().getSession().isLive() check, but it gets RepositoryException in getSession() phase.

              rhauch Randall Hauch (Inactive)
              jchocholacek Jozef Chocholáček (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: