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

Problem with XWikiHibernateStore.saveLinks and multi wiki

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1 RC1
    • Fix Version/s: 1.1 RC2
    • Component/s: Storage
    • Labels:
      None
    • keywords:
      multiwiki saveLinks patch
    • Similar issues:

      Description

      saveLinks(XWikiDocument, XWikiContext, boolean) use save hibernate Session than calling saveXWikiDoc(XWikiDocument, XWikiContext, boolean) to render. But when main wiki's XWiki.XWikiPreferences is not already in the cache when we save sub wiki page, it try to get main wiki XWikiPreferences and get "new document" that is store in the cache and corrupt all that use it next.
      This cas is very rare in current user cases but it appends for exemple in XE when creating sub wiki and import xar in this.

        Attachments

          Activity

            People

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

              Dates

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