If tag having name containing a (\n) is created then the tags are not visible any more on the left panel in SHARE under the “Tags” root.
How to reproduce:
1) In SHARE insure that you have a site called “test” created.
2) Upload the attached webscript “support2”
3) Execute the webscript “http://localhost:8080/alfresco/service/support2”
4) Browse to ore refresh page using SHARE in root of document library of TEST.
The elements under Tags” is empty and will stay empty.
The attached exception is raised, see exception.txt
-The problem is that a tagService allows tag names using \n, see support2.get.js attached. Once \n is there it is written to a content property used by “TaggingServiceImpl”. “TaggingServiceImpl” expect lines having following structure: “tag name|count\n”. If tag name contains “\n” it is not the case any more, and it generates “java.lang.ArrayIndexOutOfBoundsException”.
-Would it not be better to trigger an exception when “addTag(tagname)” is called with a “tagname” containing “\n”. By doing so it would prevent the problem to occur.