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

Add the versioning headers check in the REST API Document Creation

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The X-Versioning-Option header is taken into account at REST API document creation.
    • Tags:
    • Sprint:
      l2it-11.1.2, l2it-11.1.3
    • Story Points:
      3

      Description

      • We should add org.nuxeo.ecm.restapi.server.jaxrs.JSONDocumentObject#versioningDocFromHeaderIfExists into the org.nuxeo.ecm.restapi.server.jaxrs.JSONDocumentObject#doPost
      • This adding will insert into context data the available headers related to versions X-Versioning-Option or source
      • Although those headers won't be checked during the creation, they could be used afterward through the versioning policy contributions

      For instance we could have a rule as follow:
      <condition>#

      {currentDocument.contextData.versioning_option == "MINOR"}

      </condition>

      NXP-26813 will add as a new feature, the management of those headers in org.nuxeo.ecm.core.api.AbstractSession#createDocument(DocumentModel)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 1 day
                  1d