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

DocumentReference Locale is ignored by the platform

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.2
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Since 3.2 the DocumentReference supports specifying the Locale of the document.

      However, it seems that the platform completely ignores this feature and does not distinguish between 2 document references with different locales. Some examples:

      • store returns the same document for references with different locales
      • store returns documents with references having no locales set, even for translated document versions
      • XWikiDocument constructor does not set the document language based on the locale
      • XWikiDocument language setter ignores the reference's locale, basically creating a conflict (if Locale would be used
      • etc.

      My conclusion ATM is that this feature is unreliable and pretty much unusable. It is very likely to cause more confusion in the future if we don`t either implement it or remove it completely.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: