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

Session.removeItem crashes if a namespace is registered locally with that session

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.8.1.Final, 2.8.1.GA
    • 2.8.0.Final
    • None
    • None

    Description

      Using a JPA connector, with the standard HSQLDB configuration, executing the following test crashes with:

          @Test
          public void removeItemAfterRegisteringSessionNamespace() throws Exception {
              NamespaceRegistry namespaceRegistry = session.getWorkspace().getNamespaceRegistry();
              namespaceRegistry.registerNamespace("rh", "http://www.redhat.com");
              session.setNamespacePrefix("rh", "http://www.redhat.com");
      
              assertNotNull(namespaceRegistry.getURI("rh"));
              Node rootNode = session.getRootNode();
              rootNode.addNode("folder", "nt:folder");
              session.save();
              
              session.removeItem("/folder");
              session.save();
          }
      
       org.modeshape.graph.query.parse.InvalidQueryException: The view references a non-existant column 'jcr:score' in '__ALLNODES__' 

      The full stacktrace is attached.

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            hchiorean Horia Chiorean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: