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

    Details

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

      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

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

              Dates

              • Created:
                Updated: