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

Do not remove tags when a document is trashed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF21, 11.1, 2021.0
    • Component/s: Tagging
    • Release Notes Summary:
      Tags are kept when a document is trashed.
    • Backlog priority:
      700
    • Upgrade notes:
      Hide

      Since 10.10-HF21, there is a new configuration property nuxeo.tag.removal.on.trash.enabled that allows to enable/disable the removal of tags when trashing documents. It is set to true by default.

      To disable the removal of tags when trashing documents, use the following contribution:

      <require>org.nuxeo.tag.service.properties</require>
      <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
        <property name="nuxeo.tag.removal.on.trash.enabled">false</property>
      </extension>
      

      Note that on Nuxeo 11.1, the property does not exist and the tags are never removed when trashing documents.

      Show
      Since 10.10-HF21, there is a new configuration property nuxeo.tag.removal.on.trash.enabled that allows to enable/disable the removal of tags when trashing documents. It is set to true by default. To disable the removal of tags when trashing documents, use the following contribution: <require> org.nuxeo.tag.service.properties </require> <extension target= "org.nuxeo.runtime.ConfigurationService" point= "configuration" > <property name= "nuxeo.tag.removal.on.trash.enabled" > false </property> </extension> Note that on Nuxeo 11.1, the property does not exist and the tags are never removed when trashing documents.
    • Sprint:
      nxplatform 11.1.26, nxplatform 11.1.27
    • Story Points:
      3

      Description

      Steps to reproduce:

      1. Create a File document
      2. Add a tag to the newly created
      3. Click on the Trash icon
      4. Navigate to the Trash and view the trashed document
      5. Observe that the tag was removed

      This behavior corresponds to the code at https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-platform-tag-service/nuxeo-platform-tag-core/src/main/java/org/nuxeo/ecm/platform/tag/TaggedVersionListener.java#L96

       

      Expected behavior: a trashed document keeps its tags.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 2 hours, 30 minutes
                  2h 30m