-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10, 10.10
-
Fix Version/s: 9.10-HF31, 10.10-HF05, 11.1, 2021.0
-
Component/s: Rest API
-
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
- 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>#
</condition>
NXP-26813 will add as a new feature, the management of those headers in org.nuxeo.ecm.core.api.AbstractSession#createDocument(DocumentModel)
- is related to
-
NXP-26813 Fix use of HTTP header 'X-Versioning-Option' when creating a document
- Open