Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-486

UpdateSmokeTest does not properly support filesystem based repositories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • OpenCMIS 0.7.0
    • opencmis-tck
    • 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.

      Attachments

        Activity

          People

            fmui Florian Müller
            cmoitrier Cedric Moitrier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: