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: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021.0
    • Fix Version/s: 2021.x, 2023.x, 2025.x
    • Component/s: Comments
    • Backlog priority:
      700
    • Team:
      PLATFORM
    • Sprint:
      nxplatform next

      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

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: