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

Fix automatic versioning disabled when commenting a document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2021.0
    • Fix Version/s: 2025.x, 2023.20, 2021.61
    • Component/s: Comments
    • Backlog priority:
      700
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #122
    • Story Points:
      3

      Description

      Steps to reproduce:

      1. 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>
        
      2. 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>
        
      3. start Nuxeo
      4. log in and navigate to the personal workspace
      5. create a File document
      6. modify the document and observe that the version is increased to 1.0+ <= this is expected
      7. 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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: