Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-10007

Invalid character data in XML export

    XMLWordPrintable

Details

    Description

      Import failed with:

      Caused by: java.io.CharConversionException: Invalid character 0x9d, can only be included in xml 1.1 using character entities (at char #53563968, byte #53564188)
      	at com.ctc.wstx.io.BaseReader.reportInvalidXml11(BaseReader.java:222)
      	at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:273)
      	at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:87)
      	at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
      	at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1019)
      	... 144 more
      

      The export has been created with Woodstox 4.0.7 . We should find out if the problem has been fixed in recent versions and upgrade or report the bug upstream.

      Workaround for customers on Bamboo version below 3.3.4/3.4:
      1. Unpack the failing Bamboo zip (export) file
      2. Use this command to clean the illegal symbols from commits.xml:
        tidy -m -xml < /Users/akhachatryan/Atlassian/BambooHome3.2/exports/export_atlassianbamboo_2600_20120323_6/db-export/commits.xml > /Users/akhachatryan/Atlassian/BambooHome3.2/exports/export_atlassianbamboo_2600_20120323_6/db-export/commits1.xml
        

        Note: in the example above,t he commits.xml file had the invalid character. You might have a different XML file containing the invalid character.

      3. Remove commits.xml and change the name of commits1.xml to commits.xml.
      4. Pack up the files as a zip and re-import into a clean Bamboo-Home and Bamboo Database.

      Attachments

        Issue Links

          Activity

            People

              pbruski Przemek Bruski
              pbruski Przemek Bruski
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: