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

Failure to save translations for legacy languages using REST

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.4-milestone-1
    • Component/s: REST
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The problem is that we're now using Locale in XWikiDocument but in our REST code we convert from String to Locale and then back to String which causes issue when using one of the 3 legacy language codes. Here's an excerpt from the JDK's JavaDoc:

      Locale's constructor has always converted three language codes to their earlier, obsoleted forms: he maps to iw, yi maps to ji, and id maps to in.

      So for example: new Locale("he").toString() != "he"

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: