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

Error to access contents of older versions via CMIS

XMLWordPrintable

      Dear Modeshape team,

      As requested in forum (see https://developer.jboss.org/message/910481), I would like to report following error:

      It's not possible to access contents of older versions by using of CMIS interface (1.1) with ModeShape 4.0.0.Final
      Here the sequence of steps our code executes:

      1. Connect to CMIS repo
      2. Create a document
      3. Do check in of new contents (2 times)
      4. Try to access the older version using:
      Document.getAllVersions() method

      We figured out that the collection returned by this method contains 3 exactly the same documents with ID, content and properties of the latest version of the document,

      In attachment the java program how to reproduce the problem (testVersionCMIS.zip, all needed jars are included). Simple download, extract and execute: "java -jar testVersionCMIS.jar" to reproduce the problem.

      • runnable jar: ./testVersionCMIS.jar
      • Source: ./src/TestVersioningTemp.java
      • test files: ./testFiles

      NOTE:
      If we use JCR API everything works fins, it seems really to be a CMIS related problem.

        1. infinispan-config.xml
          1 kB
        2. jta.properties
          1.0 kB
        3. repository-config.json
          0.7 kB
        4. testVersionCMIS.zip
          1.95 MB

            oleg.kulikov Oleg Kulikov (Inactive)
            vitbit1978 Vitali Belenki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: