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

Fail to import a XAR exported with history

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0 RC2
    • 1.0 B6
    • {Unused} Packaging
    • None
    • Red Hat Linux 4 update 5
    • import failure

    Description

      While trying to import a user page (see attachement hayman-versioned), I encountered the following problem

      org.suigeneris.jrcs.rcs.TokenMgrError: Lexical error at line 1, column 1. Encountered: "[" (91), after : ""
      at org.suigeneris.jrcs.rcs.ArchiveParserTokenManager.getNextToken(ArchiveParserTokenManager.java:968)
      at org.suigeneris.jrcs.rcs.ArchiveParser.jj_consume_token(ArchiveParser.java:543)
      at org.suigeneris.jrcs.rcs.ArchiveParser.head(ArchiveParser.java:166)
      at org.suigeneris.jrcs.rcs.ArchiveParser.admin(ArchiveParser.java:107)
      at org.suigeneris.jrcs.rcs.ArchiveParser.archive(ArchiveParser.java:79)
      at org.suigeneris.jrcs.rcs.ArchiveParser.load(ArchiveParser.java:54)
      at org.suigeneris.jrcs.rcs.Archive.<init>(Archive.java:274)
      at com.xpn.xwiki.doc.XWikiAttachmentArchive.setArchive(XWikiAttachmentArchive.java:92)
      at com.xpn.xwiki.doc.XWikiAttachment.setArchive(XWikiAttachment.java:398)
      at com.xpn.xwiki.doc.XWikiAttachment.fromXML(XWikiAttachment.java:349)
      at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:2322)
      at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:2271)

      If I blanked out the versions field for the user page, the import was successfull (See hayman-unversioned)

      The root cause appears to be caused by trying to import a pages exported with the history check box ticked.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            rshayman Robert Hayman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: