Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15753

"The string "--" is not permitted within comments" error when restoring JIRA 3.13 backup

    XMLWordPrintable

Details

    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

          Activity

            People

              bbaker ɹǝʞɐq pɐɹq
              lean.zhenyueh Zhen Yueh, Lean [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: