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

Filtering pages in livetable should work when the references are stored with the wiki

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.5
    • Fix Version/s: None
    • Component/s: LiveTable
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Apparently it's not possible to filter a livetable when using a "suggest" type for the column, if the reference is stored with a full reference, including the wiki part. I understand the reason behind it (comparison of a compact reference against a full reference) but I think it's a bug: when using a compact reference as a filter in the wiki, the full references of the same wiki should be matched.

      Reproduction steps:

      • Import the attached XAR
      • Open XWIKI-18809 page and filter the LiveTable for Home page (corresponding to Main.WebHome, see the attached screenshot)

      Manual Reproduction steps:

      • Create an XClass with a Page property
      • Add a new xobject of the new xclass and fill the property with a full reference including the wiki part (e.g. "xwiki:Main.WebHome")
      • Create a new livetable for the new xclass, like this:
        {{velocity}}
        #set ($id = "my-livetable")
        #set ($columns = ["doc.name", "pageProperty"])
        #set($columnsProperties = {
           "doc.name" : { "type" : "text", "link" : "view" },
           "pageProperty" : { "type" : "suggest", "html": "true"}
        })
        #set($options = { 
           "className":"My.XClass",
           "rowCount": 10
        })
        #livetable($id $columns $columnsProperties $options)
        {{/velocity}}
        
      • Try to filter the "pageProperty" column by searching and selecting for "Home" (corresponding to Main.WebHome)

      Expected result:

      • The "xwiki:Main.WebHome" should still be displayed once the filter is applied since it's matching the same page

      Obtained result:

      • The data is filtered out because the data only matches compact reference: if the reference is stored without the wiki part, it's working properly.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: