Steps to reproduce:
- add a contribution to add the Record facet to the File doc type
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"> <doctype name="File" append="true"> <facet name="Record"/> </doctype> </extension>
- add a contribution to do MAJOR version increase when a File is modified
<require>org.nuxeo.ecm.core.versioning.default-policies</require> <extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="policies"> <policy id="major-versioning-for-record-schema-changes" increment="MAJOR" beforeUpdate="true" order="85"> <filter-id>record-filter</filter-id> </policy> </extension> <extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="filters"> <filter id="record-filter"> <facet>Record</facet> </filter> </extension>
- start Nuxeo
- log in and navigate to the personal workspace
- create a File document
- modify the document and observe that the version is increased to 1.0+ <= this is expected
- comment the document, refresh the page and observe that the version is increased to 2.0+ <= this is not expected because adding a comment should not create a new version
Expected behavior: commenting a document should not trigger the automatic versioning