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

DocumentAccessBridge#getDocument is very missleading

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.11.2
    • Fix Version/s: 10.2, 9.11.4
    • Component/s: Bridge, Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      It actually returns a translation based on the context locale.

      It used to return de default document but was broken by XWIKI-6627 and it's too late to fix it now.

      I will just deprecated it and introduce a more explicit getTranslatedDocument and find a new name for the proper method that return the default document.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: