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

Bad handling of Locales in a XAR containing both old (<1.2) and new (1.2) XAR XML format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.2-rc-1
    • Fix Version/s: 7.2
    • Component/s: Filter - XAR
    • Labels:
    • Tests:
      Unit
    • Development Priority:
      High
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I reproduced it on 7.3-SNAPSHOT and I believe it affects 7.2RC1 also. Here's what I did:

      • I built xwiki-platform-search-solr-ui XAR
      • I took the latest XWiki 7.3-SNAPSHOT
      • Start XWiki > Administer Wiki > Import > upload the Solr UI XAR > click Import with default options
        • Main.SolrTranslations are listed in the XAR import tree so they are seen in the XAR
        • After import, the "List of installed pages" lists Main.SolrTranslations multiple times (that's a different issue: the locale is not displayed) so apparently all translations have been imported

      Check the Main.SolrTranslations page. You'll see that is has the content of the SK translations and the other translations are not present. My guess is that the translations are overwriting one another, probably because the document reference doesn't include the locale.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: