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

When loading documents from a different wiki, objects are loaded with the wrong class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.7 M3
    • 1.7 M2
    • {Unused} Core
    • None

    Description

      From BaseCollection:

      if (wiki == null) {
          context.getWiki();
      }
      

      The line inside the if block does not do anything, the name of the wiki is left null, and further down in the method the current wiki is set to the wiki variable, thus the contextual wiki is lost.

      The code should be:

      if (wiki == null) {
          wiki = context.getDatabase();
      }
      

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: