Details
-
Bug
-
Resolution: Invalid
-
Medium
-
None
-
3.0 Standard Beta
-
JIRA Standalone (Tomcat)
-
3
-
Description
Under application servers with lax XML parsers (eg. Resin), it is possible to export a JIRA backup that has non-Unicode characters, and so is invalid XML. JIRA cannot import these files. To work around this, we wrote a filter which strips out invalid characters before the parser gets to them. This filter is enabled by setting the jira.exportimport.cleanxml in jira-application.properties.
Unfortunately under Tomcat (JIRA Standalone), enabling this flag causes imports to break with the message:
Exception occurred: java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: ��tion
And in the log:
2004-10-06 11:14:12,533 INFO [jira.action.admin.DataImport] Importing using the SAX Parser
2004-10-06 11:14:12,538 INFO [jira.action.admin.DataImport] Start parsing XML with SAX Parser
2004-10-06 11:14:12,564 WARN [jira.action.admin.DataImport] Replaced invalid XML character (0).
2004-10-06 11:14:12,564 WARN [jira.action.admin.DataImport] Replaced invalid XML character (0).
2004-10-06 11:14:12,569 ERROR [ofbiz.core.entity.GenericDelegator] Error getting entity definition from model
org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name ??tion
at org.ofbiz.core.entity.model.ModelReader.getModelEntity(ModelReader.java:300)
at org.ofbiz.core.entity.GenericDelegator.getModelEntity(GenericDelegator.java:248)
at org.ofbiz.core.entity.GenericDelegator.makeValue(GenericDelegator.java:408)
at com.atlassian.jira.action.admin.ImportParser.startElement(ImportParser.java:79)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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.DTDConfiguration.parse(Unknown Source)