Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-2360

Tags list not updated after moving/copying an high number of nodes with taggable aspect but no tags

    Details

      Description

      [ Steps to reproduce]
      1. Create a new Share Site "TestSite"
      2. Inside the site docLib, create two folders "TestFolder1", "TestFolder2"
      3. Create 101 (or more) documents inside TestFolder1
      4. Apply a tag "testTag" to each document and save
      5. Remove the tag "testTag" from each document
      (the documents must not have any tags at this point )
      6. Move the folder TestFolder1 inside TestFolder2
      7. In the site docLib create a new document and add a Tag

      [ Actual Result]
      On tags list there is no update on new tags

      [ Expected Result]
      The tags list should be updated with the new tags

      [ Notes ]
      1) Attached a js to performs steps 2-6
      2) UpdateTagScopesActionExecuter writes 2 records on the database for each moved/copied file ( check http://localhost:8080/alfresco/service/api/audit/query/Alfresco%20Tagging%20Service )
      When the Alfresco Tagging Service Auditing application has more than 100 records UpdateTagScopesActionExecuter.searchForUpdates(NodeRef, Map<String, Integer>) doesnt' detect the new updates (tagUpdateBatchSize is set to 100)
      3) Clearing the Alfresco Tagging Service and refreshing the tagScope temporarily workarounds the issue

      • curl -u admin:admin -v -X POST "http://localhost:8080/alfresco/service/api/audit/clear/Alfresco%20Tagging%20Service"
      • var site = siteService.getSite("TestSite");
        var container = site.getContainer("documentLibrary");
        container.tagScope.refresh();

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  mmancuso Marco Mancuso [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel