Chemistry
  1. Chemistry
  2. CMIS-446

SetAndDeleteContentTest does not propertly handle documents whose content stream is required

    Details

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

      Description

      According to CMIS specification, the Repository MUST throw a constraint exception if the Object's Object-Type definition "contentStreamAllowed" attribute is set to "required".

      Running SetAndDeleteContentTest on a document whose content stream is required fails due to a CmisConstraintException thrown by deleteContentStream.

      To properly handle this scenario, one can either:

      • catch CmisConstraintException thrown by deleteContentStream
      • check the value of contentStreamAllowed for the target object prior to calling deleteContentStream, and delete content only if it is not required

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development