Details
-
Bug
-
Resolution: Fixed
-
Highest
-
3.13
-
3.13
-
Description
In JIRA 3.13, the JIRA system information is added as a comment in the JIRA XML backup, JRA-14466. This information is very useful for support. However, this will cause JIRA to fail. JIRA will not be able to parse the data if the data contains the information of Regex Comment Handler with parameter "splitregex=/----\s*Original Message\s*----/". For example:
<!-- ... ___ Services _____________________ Comment Service : com.atlassian.jira.service.services.imap.ImapService Service Delay : 60000ms Last Run : 10/9/08 11:46 AM handler : admin.service.common.handler.regex popserver : mypop handler.params : splitregex=/-----\s*Original Message\s*-----/ ... -->
This is the error in the log:
15:10:08,016 INFO [STDOUT] 2008-10-10 15:10:08,016 http-127.0.0.1-8080-2 INFO [jira.action.admin.DataImport] Start parsing XML with SAX Parser 15:10:08,028 INFO [STDOUT] 2008-10-10 15:10:08,026 http-127.0.0.1-8080-2 ERROR [jira.action.admin.DataImport] Error parsing export file: org.xml.sax.SAXParseException: The string "--" is not permitted within comments. org.xml.sax.SAXParseException: The string "--" is not permitted within comments. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.atlassian.jira.action.admin.DataImport.doExecute(DataImport.java:143) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54)
Attachments
Issue Links
- causes
-
JRASERVER-16020 Restore from XML fails if System Information contains dashes
- Closed
- is duplicated by
-
JRASERVER-16116 Export containing double hyphens in comments fail to import.
- Closed