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

Deleting tag using TaggingService.deleteTag() causes issue where no more tags can be added to node

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.1.8, 4.2.4
    • Fix Version/s: 4.1.N
    • Component/s: Tags and Categories
    • Labels:
      None
    • Environment:
      Alfresco 4.1.8/4.2.4.6, MySQL 5.5

      Description

      [ Problem ]
      Deleting a tag using TaggingService.deleteTag() causes an issue where the node in question can no longer have either that tag recreated and added or any other tag added to it.

      [ Steps to reproduce ]
      1. in Share create a folder called 'folder1'
      2. add "tag1" to folder "folder1"
      3. delete the tag from the store using the attached foundation API example
      i.e. taggingService.deleteTag(storeRef, "tag1");
      4. try and add the tag "tag1" back onto the folder "folder1" inline.

      Actual behavior:
      An error occurs: message.insitu-edit.tag.failure - 'failure1.png'

      5. Add the tag "tag1" back onto the folder "folder1" in the all properties window:

      Actual behavior: An error occurs: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/b3c3ea43-f18d-4f67-9517-55ef4db15e0b(Status[id=14698changeTxnId=dd22053f-dfd1-4f7d-a2e2-90c9dcdbf07b, dbTxnId=4887, deleted=true]) - see 'failure2.png'

      See screenshots for the above 4.1.8 behaviour.

      • reproduced 4.1.8 vanilla
      • reproduced 4.2.4.6 vanilla (I don't see the 'Node does not exist' error but still unable to set the tag on the folder at this point).

        Attachments

        1. TaggingTest.java
          1 kB
        2. failure1.PNG
          failure1.PNG
          30 kB
        3. failure2.PNG
          failure2.PNG
          28 kB
        4. Refresh_scope.JPG
          Refresh_scope.JPG
          36 kB

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                astrachan Alex Strachan
              • Votes:
                0 Vote for this issue
                Watchers:
                7 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 - 1 week, 7 hours, 2 minutes
                  1w 7h 2m

                    Structure Helper Panel