When XML containing control characters is imported into JIRA, the import fails with an error:
To fix this, the control characters will need to be removed from the JIRA backup file. This can be done with the following:
- Download atlassian-xml-cleaner-0.1.jar
- Open a command prompt and locate the XML or ZIP backup file on your computer, ensuring that it is extracted if it's within a ZIP file. In this example, we will use
Run the application with the below:
This will create a copy of
entities-clean.xmlwith the invalid characters removed.
- Copy the
entities-clean.xmlfile into another directory, rename it back to
entites.xmland create a new ZIP with and the
- Import the new ZIP file, ensuring that it contains both XML files.