Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13379

Use of 'spaces' parameter of tagcloud macro throw error when following the example

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4.2
    • Fix Version/s: 8.1-rc-1, 7.4.4
    • Component/s: Tag
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      To reproduce :

      • Create 2 pages TagSpaceTest1 and TagSpaceTest2
      • Set tagcloud 'spaces' to "'TagSpaceTest1','TagSpaceTest2'" as the example
      Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTagCountForQuery' in  class com.xpn.xwiki.plugin.tag.TagPluginApi threw exception com.xpn.xwiki.XWikiException: Error number 0 in 3: Failed to get tag count for query [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop where tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.space IN("'TagSpaceTest1','TagSpaceTest2'")], with parameters [[]] at 135:xwiki:Dashboard.WebHome[line 22, column 30]
      

      How to quick solve :

      • Do not use the double quotes

      How to deeply solve :

      • Change the translation to remove the quotes
      • Set the value in Italic

        Attachments

          Activity

            People

            • Assignee:
              acotiuga Alex Cotiugă
              Reporter:
              jcoury Jean Coury
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: