Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-241

MnglContext.getJCRSession does not return a valid session

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 3.1.3
    • None
    • None
    • Windows 7 x64
      Tomcat 7
      Magnolia 5.4.9
      Spring 4.2.5

    Description

      During a request the component's handleRequest method is executed.

      In this method, we execute various logic operation and one of them is to obtain a list of products contained in a contentApp's workspace. To do so, we execute these instructions:

      Session session = MgnlContext.getJCRSession("validWorkspace");
      Node someNode = session.getNode("validPath");
      

      the getNode() throws a node not found exception. In fact, getNode("/") returns the root node but the root node has no children. That's really frustrating because if we dump the root node in the JCR tools app, there is a child node. And the node pointed by the 'validPath' is there too.

      Am I missing something or do we have to do things differently than in Magnolia 4.5.2x ?

      Thanks!

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              yorkish Ugo La Giorgia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD