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

Wiki REST endpoint returns first translation for the "name" scope when localeAware=true is passed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.10
    • REST
    • None
    • Unknown

    Description

           * @param isLocaleAware If true, fetches the documents with the best language (the one from the user
           * or the default one from the document).
      

      When calling /wikis/<wikiName>/search with localeAware=true and with scope=name, the returned entry is the first translation (in any language).

      The reason is that localeAware seems to be implemented properly only for scope=title and for the others there's just a quick unicity filter done.

      To reproduce:

      http://localhost:8080/xwiki/rest/wikis/xwiki/search?scope=name&localeAware=true&number=10&&q=san

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: