[MNT-14453] Deleting tag using TaggingService.deleteTag() causes issue where no more tags can be added to node Created: 27-Jul-15  Updated: 09-Aug-17  Resolved: 06-Jun-16

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Tags and Categories
Affects Version/s: 4.1.8, 4.2.4
Fix Version/s: 4.1.N

Type: Service Pack Request
Reporter: Alex Strachan Assignee: Closed Bugs (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 1 week, 7 hours, 2 minutes
Original Estimate: Not Specified
Environment:

Alfresco 4.1.8/4.2.4.6, MySQL 5.5


Attachments: JPEG File Refresh_scope.JPG     Java Source File TaggingTest.java     PNG File failure1.PNG     PNG File failure2.PNG    
Issue Links:
Dependency
Related
Bug Priority:
Category 2
ACT Numbers:

00441255 Premier

Build Location: https://bamboo.alfresco.com/bamboo/browse/ALF-ENTERPRISEV41BUGFIX-1445/artifact/JOB1/ALL/

 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).

Generated at Fri Dec 04 05:49:48 GMT 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.