[jbossts-issues] [JBoss JIRA] (JBTM-2317) SAX parsing of properties file fails when offline

Tom Jenkinson (JIRA) issues at jboss.org
Thu Dec 11 10:54:43 EST 2014


     [ https://issues.jboss.org/browse/JBTM-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson closed JBTM-2317.
-------------------------------


> SAX parsing of properties file fails when offline
> -------------------------------------------------
>
>                 Key: JBTM-2317
>                 URL: https://issues.jboss.org/browse/JBTM-2317
>             Project: JBoss Transaction Manager
>          Issue Type: Enhancement
>          Components: Common
>            Reporter: Tom Jenkinson
>            Assignee: Tom Jenkinson
>             Fix For: 5.0.4
>
>
> The SAX parser verifies DTDs during parsing of the XML files, this is not done for the StAX parser. As our properties files usually link to the Sun DTD for properties on from java.sun.com this causes SAX parsing to fail when offline.
> We only have one test that uses SAX parsing (SAX parsing was added for Android). The workaround is to access the XMLReader from the parser and disable validation and loading-external-dtd's. The unit test still works with this disabled so I think it is safe to ignore downloading the Sun properties DTD.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbossts-issues mailing list