loftuxab / alfresco-community-loftux

Alfresco Community by Loftux
https://loftux.com
GNU Lesser General Public License v3.0
10 stars 145 forks source link

Delete tag can cause Check out error #31

Closed loftux closed 6 years ago

loftux commented 6 years ago

If a tag is deleted via tag manager in admin console, it can be impossible to update a document that had this tag with a new version. Reportedly fixed here https://issues.alfresco.com/jira/browse/MNT-14453 It missed the part of doing a test for afterNodeRef in TaggingServiceImpl.java:409

at org.alfresco.repo.tagging.TaggingServiceImpl.getTagName(TaggingServiceImpl.java:454)
at org.alfresco.repo.tagging.TaggingServiceImpl.updateTags(TaggingServiceImpl.java:409)

This needs to be added.

 if (this.nodeService.exists(afterNodeRef))