rbeckman-nextgen / test-mc6

0 stars 0 forks source link

XmlUtil.prettyPrint is not thread safe #4117

Open rbeckman-nextgen opened 4 years ago

rbeckman-nextgen commented 4 years ago

See forum post with issue: https://www.mirthcorp.com/community/forums/showthread.php?t=218139

While the restriction is not mentioned in the Oracle JavaDocs, according to http://xalan.apache.org/xalan-j/trax.html#pattern-TransformerFactory,

??A TransformerFactory may not perform mulitple concurrent operations.??

com.mirth.connect.util.MirthXmlUtil uses a single TransformerFactory stored in a static class variable.

Imported Issue. Original Details: Jira Issue Key: MIRTH-4265 Reporter: agermano Created: 2018-04-27T21:00:20.000-0700