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

Problem with XWikiHibernateStore.saveLinks and multi wiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1 RC2
    • 1.1 RC1
    • Storage
    • None
    • multiwiki saveLinks patch

    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

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

            Dates

              Created:
              Updated:
              Resolved: