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

Fail a query if we can't switch the current wiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 13.10.6, 14.4
    • 1.0
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      In MySQL, it's impossible to manipulate different databases on the same session, the problem is that right now you can execute a query targeting a totally different database than the one you expect, giving you a result that does not make sense. Combine this with the document cache and the security cache, and you can create quite a mess without always noticing before it's too late.

      It's a known problem for a long time, but we cannot continue like this, at the very least we should identify such use cases and fail the query when that happen instead of executing it on the wrong database.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: