Chemistry
  1. Chemistry
  2. CMIS-486

UpdateSmokeTest does not properly support filesystem based repositories

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenCMIS 0.7.0
    • Component/s: opencmis-tck
    • Labels:
      None

      Description

      By filesystem based repositories I mean repositories whose object identifiers are somehow derivated from their path; thus their identifier does change when their name is updated.

      The test ends with the following statement:
      <code>
      if (!doc1.getId().equals(doc2.getId()))

      { deleteObject(doc1); }

      </code>

      which fails in the aformentioned scenario because at this point doc1.getId() does no more identify any existing document.

      Replacing this piece of code by:
      <code>
      if (!doc1.getId().equals(doc2.getId())) {
      try

      { session.getObject(doc1.getId()); deleteObject(doc1); }

      catch (CmisObjectNotFoundException e) {
      }
      }
      </code>
      should fix this issue.

        Activity

        Cedric Moitrier created issue -
        Florian Müller made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Florian Müller [ fmui ]
        Fix Version/s OpenCMIS 0.7.0 [ 12319189 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Florian Müller
            Reporter:
            Cedric Moitrier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development