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

Importing and reimporting (replacing) same XML with versioned content results in corrupted version history

    XMLWordPrintable

Details

    Description

      Importing and then reimporting the same XML file (which contains nodes that are referenceable and versioned) results in an inability to check out, modify, and check in one of the versioned nodes. Here's a stack trace (the UUIDs are not important):

      org.modeshape.graph.property.PathNotFoundException: Unable to find "[{http://www.modeshape.org/1.0}uuid = 72a1eedb-4bd9-4fff-a468-be8178f1e350]"; lowest existing path is "/"
      	at org.modeshape.graph.connector.map.MapRequestProcessor.getTargetNode(MapRequestProcessor.java:630)
      	at org.modeshape.graph.connector.map.MapRequestProcessor.process(MapRequestProcessor.java:149)
      	at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:740)
      	at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:288)
      	at org.modeshape.connector.store.jpa.model.simple.SimpleJpaConnection.execute(SimpleJpaConnection.java:127)
      	at org.modeshape.graph.connector.RepositoryConnectionPool$ConnectionWrapper.execute(RepositoryConnectionPool.java:1129)
      	at org.modeshape.graph.Graph.execute(Graph.java:283)
      	at org.modeshape.graph.Graph$5.process(Graph.java:226)
      	at org.modeshape.graph.request.RequestBuilder.readNode(RequestBuilder.java:142)
      	at org.modeshape.graph.Graph.getNodeAt(Graph.java:2413)
      	at org.modeshape.graph.Graph.getNodeAt(Graph.java:2403)
      	at org.modeshape.jcr.JcrVersionManager.checkin(JcrVersionManager.java:361)
      	at org.modeshape.jcr.JcrVersionManager.checkin(JcrVersionManager.java:1723)
      

      This occurs with the in-memory or JPA sources.

      Attachments

        1. archive-package-error.png
          66 kB
          Randall Hauch
        2. brms-jdbc-ds.xml
          1 kB
          Randall Hauch
        3. components.xml
          3 kB
          Randall Hauch
        4. modeshape-config.xml
          6 kB
          Randall Hauch
        5. rule_repository.xml
          319 kB
          Randall Hauch
        6. server.log
          51 kB
          Randall Hauch

        Activity

          People

            rhauch Randall Hauch (Inactive)
            psiroky_jira Petr Široký (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: