Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21327

Return error on CMIS cancelCheckOut of document with cmis:versionLabel set to null

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 9.1
    • Component/s: CMIS

      Description

      Steps to reproduce problem:

      1. Create doc of type File with "Skip version increment"
      2. Invoke CMIS cancelCheckOut Browser Binding operation on doc using curl

      Current Result: doc is deleted
      Improved Result: special error is returned indicating that a CMIS cancelCheckOut operation cannot be performed against a non-versioned document (which has no cmis:versionLabel)


      Using the configuration property org.nuxeo.cmis.errorOnCancelCheckOutOfDraftVersion it's now possible to enable the returning of a versioning error when an attempt is made to call cancelCheckOut on a draft (live document with no version):

        <require>org.nuxeo.ecm.core.opencmis.configuration</require>
        <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
          <property name="org.nuxeo.cmis.errorOnCancelCheckOutOfDraftVersion">true</property>
        </extension>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h