Chemistry
  1. Chemistry
  2. CMIS-150

VersionsTest.testCheckout to not assert the VersionSeriesId in pwc with ObjectId previosly document created.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: OpenCMIS 1.0.0
    • Component/s: tck
    • Labels:
      None

      Description

      Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue());

      at org.apache.chemistry.tck.atompub.test.spec.VersionsTest.testCheckout(VersionsTest.java:103)

        Activity

        Florian Müller made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Hide
        Florian Müller added a comment -

        This TCK has been superseded by the OpenCMIS TCK.

        Show
        Florian Müller added a comment - This TCK has been superseded by the OpenCMIS TCK.
        David Caruana made changes -
        Field Original Value New Value
        Fix Version/s OpenCMIS 1.0 [ 12315135 ]
        Hide
        David Caruana added a comment -

        It is expected that this TCK will be replaced by the OpenCMIS based TCK.

        Show
        David Caruana added a comment - It is expected that this TCK will be replaced by the OpenCMIS based TCK.
        Hide
        Alexey Zavizionov added a comment - - edited

        There are no dependencies between the ObjectId and the VersionSeriesId.

        This patch is works for us.

        Index: src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java
        ===================================================================
        --- src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java	(revision 932410)
        +++ src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java	(working copy)
        @@ -100,7 +100,6 @@
                 CMISObject pwcObject = pwc.getExtension(CMISConstants.OBJECT);
                 Assert.assertNotNull(pwcObject);
                 Assert.assertTrue(pwcObject.isVersionSeriesCheckedOut().getBooleanValue());
        -        Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue());
                 Assert.assertEquals(docObject.getVersionSeriesId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue());
                 Assert.assertEquals(pwcObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesCheckedOutId().getStringValue());
                 Assert.assertNotNull(pwcObject.getVersionSeriesCheckedOutBy().getStringValue());
        @@ -114,7 +113,6 @@
                 CMISObject pwcGetObject = pwc.getExtension(CMISConstants.OBJECT);
                 Assert.assertNotNull(pwcGetObject);
                 Assert.assertTrue(pwcGetObject.isVersionSeriesCheckedOut().getBooleanValue());
        -        Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcGetObject.getVersionSeriesId().getStringValue());
                 Assert.assertEquals(pwcGetObject.getObjectId().getStringValue(), pwcGetObject.getVersionSeriesCheckedOutId().getStringValue());
                 Assert.assertNotNull(pwcGetObject.getVersionSeriesCheckedOutBy().getStringValue());
         

        Regards,
        Alexey.
        xCMIS Team.

        Show
        Alexey Zavizionov added a comment - - edited There are no dependencies between the ObjectId and the VersionSeriesId. This patch is works for us. Index: src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java =================================================================== --- src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java (revision 932410) +++ src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java (working copy) @@ -100,7 +100,6 @@ CMISObject pwcObject = pwc.getExtension(CMISConstants.OBJECT); Assert.assertNotNull(pwcObject); Assert.assertTrue(pwcObject.isVersionSeriesCheckedOut().getBooleanValue()); - Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue()); Assert.assertEquals(docObject.getVersionSeriesId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue()); Assert.assertEquals(pwcObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesCheckedOutId().getStringValue()); Assert.assertNotNull(pwcObject.getVersionSeriesCheckedOutBy().getStringValue()); @@ -114,7 +113,6 @@ CMISObject pwcGetObject = pwc.getExtension(CMISConstants.OBJECT); Assert.assertNotNull(pwcGetObject); Assert.assertTrue(pwcGetObject.isVersionSeriesCheckedOut().getBooleanValue()); - Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcGetObject.getVersionSeriesId().getStringValue()); Assert.assertEquals(pwcGetObject.getObjectId().getStringValue(), pwcGetObject.getVersionSeriesCheckedOutId().getStringValue()); Assert.assertNotNull(pwcGetObject.getVersionSeriesCheckedOutBy().getStringValue()); Regards, Alexey. xCMIS Team.
        Hide
        David Caruana added a comment -

        Before I remove this line, is it possible for you to determine if there are other asserts in VersionsTest that also fail for you. I ask as there are several other asserts similar to this one.

        Show
        David Caruana added a comment - Before I remove this line, is it possible for you to determine if there are other asserts in VersionsTest that also fail for you. I ask as there are several other asserts similar to this one.
        Alexey Zavizionov created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexey Zavizionov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development