Anonymizer does not work with large files

XMLWordPrintable

    • 34
    • Severity 2 - Major
    • 2

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Summary

      JIRA Anonymizer does not work with large files.

      Steps to Reproduce

      1. Export a backup from a large JIRA instance (500K+ issues)
      2. Attempt to anonymize the entities.xml file

      Expected Results

      The entities.xml is anonymized correctly.

      Actual Results

      The error below happens:

      /Users/bberen/Downloads/entities_clean.xml:57329676:992: JAXP00010004: The accumulated size of entities is "50,000,001" that exceeded the "50,000,000" limit set by "FEATURE_SECURE_PROCESSING".
      

      Workaround

      Add the parameters -DentityExpansionLimit=2147480000 -DtotalEntitySizeLimit=2147480000 -Djdk.xml.totalEntitySizeLimit=2147480000 when launching the anonymizer, such as below:

      java -DentityExpansionLimit=2147480000 -DtotalEntitySizeLimit=2147480000 -Djdk.xml.totalEntitySizeLimit=2147480000 -Xmx2g -jar joost.jar entities.xml anon.stx > anon-entities.xml
      

              Assignee:
              Unassigned
              Reporter:
              Vinicius Fontes
              Votes:
              11 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated: