Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
11.7-rc-1, 11.10.3, 12.0
-
Unknown
-
N/A
-
N/A
-
Description
See https://forum.xwiki.org/t/tag-not-working-on-livetable-tagcloud/6206/
To reproduce:
- Create a page and put in it:
{{velocity}}#set($columns = ["_avatar", "first_name", "last_name", "email", "doc.creationDate", "_actions"]) #set($columnsProperties = { "_avatar" : { "type" : "none", "link" : "none", "html" : "true", "sortable":false }, "first_name" : { "type" : "text" , "size" : 20, "link" : "view"}, "last_name" : { "type" : "text", "link" : "view"}, "email" : { "type" : "text", "html" : "true"} }) #set($options = { "className":"XWiki.XWikiUsers", "translationPrefix" : "xe.userdirectory.", "tagCloud" : true, "rowCount": 10 }) #livetable("userdirectory" $columns $columnsProperties $options){{/velocity}}
- Add a "test" tag to the Admin user profile
- Click the "test" tag in the LT tag cloud
You'll get the following errors in the console:
2020-02-14 15:49:49,771 [http://localhost:8080/xwiki/bin/get/XWiki/LiveTableResults?outputSyntax=plain&transprefix=xe.userdirectory.&classname=XWiki.XWikiUsers&collist=_avatar%2Cfirst_name%2Clast_name%2Cemail%2Cdoc.creationDate&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=2&tag=test&sort=first_name&dir=asc] ERROR o.a.v.d.null - Exception in macro #gridresult_buildTagCloudJSON called at xwiki:XWiki.LiveTableResults[line 456, column 1] 2020-02-14 15:49:49,772 [http://localhost:8080/xwiki/bin/get/XWiki/LiveTableResults?outputSyntax=plain&transprefix=xe.userdirectory.&classname=XWiki.XWikiUsers&collist=_avatar%2Cfirst_name%2Clast_name%2Cemail%2Cdoc.creationDate&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=2&tag=test&sort=first_name&dir=asc] ERROR o.a.v.d.null - Exception in macro #gridresultwithfilter_buildJSON called at xwiki:XWiki.LiveTableResults[line 480, column 1] 2020-02-14 15:49:49,772 [http://localhost:8080/xwiki/bin/get/XWiki/LiveTableResults?outputSyntax=plain&transprefix=xe.userdirectory.&classname=XWiki.XWikiUsers&collist=_avatar%2Cfirst_name%2Clast_name%2Cemail%2Cdoc.creationDate&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=2&tag=test&sort=first_name&dir=asc] ERROR o.a.v.d.null - Exception in macro #gridresultwithfilter called at xwiki:XWiki.LiveTableResults[line 23, column 1]
And the LT won't filter the tag properly.