RFR: 8260: Warnings and errors logged during XML processing

Marcus Hirt hirt at openjdk.org
Fri Oct 11 17:59:17 UTC 2024


On Fri, 11 Oct 2024 17:42:46 GMT, Virag Purnam <vpurnam at openjdk.org> wrote:

> We have several xml files in JMC. To remove fortify scan issue about XML Validation, **DocumentBuilderFactory.setValidating(true)** had been added. Because of that validation was triggered during the parsing of XML. We do not have **xsd files** against all the xml files and so it shows errors and warning.  
> We can either create **xsd files** or **disable the ErrorValidator**. 
> I think at this point disabling the default ErrorValidator is better option, and I have done the same in this PR. 
> Could you please review the changes. Thanks.

Marked as reviewed by hirt (Lead).

Ok. Let's open a new ticket, and then we can see if someone would be interested in declaring the schemas. The ticket can link this PR and explain what needs to be done.

-------------

PR Review: https://git.openjdk.org/jmc/pull/592#pullrequestreview-2363321567
PR Comment: https://git.openjdk.org/jmc/pull/592#issuecomment-2407886369


More information about the jmc-dev mailing list