Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.0 B6
-
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.