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

Exception displayed in the deleted documents index after deleting the Blog space

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.4-milestone-1
    • 3.3
    • Old Core
    • None
    • Unknown

    Description

      After first deleting a class document and then a document containing an object of that class, the stored XML of the object won't include a class definition. Later, when reading the document from the trash, the re-parsed object won't have a classname set, which causes a NPE in this.xObjects.get(object.getXClassReference()) in com.xpn.xwiki.doc.XWikiDocument.setXObject(int, BaseObject). The whole Deleted Documents page becomes unusable.

      A proper fix of the BaseObject toXML and fromXML methods would be needed, but it's hard to fix without breaking a lot of backwards compatibility. Something to work on later, for the moment a quick fix for the object's classname should fix the problem at hand.

      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: