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

SetAndDeleteContentTest does not propertly handle documents whose content stream is required

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.5.0
    • OpenCMIS 0.6.0
    • tck
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: