RFR: 8260: Warnings and errors logged during XML processing

Virag Purnam vpurnam at openjdk.org
Mon Oct 14 06:02:16 UTC 2024


On Fri, 11 Oct 2024 17:56:50 GMT, Marcus Hirt <hirt 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.
>
> 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.

Thanks @thegreystone, I have created https://bugs.openjdk.org/browse/JMC-8273 and linked to JMC-8260

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

PR Comment: https://git.openjdk.org/jmc/pull/592#issuecomment-2410027627


More information about the jmc-dev mailing list