utils: use safer parsing utility across codebase#6562
Conversation
5f5c2a8 to
188ede5
Compare
This addresses SonarQube/SonarCloud quality checks to use safer xml parser to resist potential XXE attacks. https://sonarcloud.io/organizations/apache/rules?open=java%3AS2755&rule_key=java%3AS2755 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3808 |
|
Please retry analysis of this Pull-Request directly on SonarCloud. |
|
@blueorangutan test matrix |
|
@rohityadavcloud a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-4528)
|
|
Trillian test result (tid-4529)
|
|
Trillian test result (tid-4530)
|
| final DocumentBuilderFactory factory = ParserUtils.getSaferDocumentBuilderFactory(); | ||
| assertTrue(factory.getFeature(XMLConstants.FEATURE_SECURE_PROCESSING)); | ||
| assertTrue(factory.getFeature("http://apache.org/xml/features/disallow-doctype-decl")); | ||
| assertFalse(factory.getFeature("http://xml.org/sax/features/external-general-entities")); |
There was a problem hiding this comment.
can define / use constants for these urls?
There was a problem hiding this comment.
I'll check for ParserUtils but not necessarily the test itself
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-4532)
|
|
@blueorangutan test centos8 vmware-70u3 |
|
@rohityadavcloud unsupported parameters provided. Supported mgmt server os are: |
|
@blueorangutan test rocky8 vmware-70u3 |
|
@rohityadavcloud a Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests |
|
@blueorangutan test ubuntu20 xcpng82 |
|
@rohityadavcloud a Trillian-Jenkins test job (ubuntu20 mgmt + xcpng82) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-4534) |
|
Trillian test result (tid-4535)
|
volumes error not related, #6549 should fix it |
This addresses SonarQube/SonarCloud quality checks to use safer xml parser to resist potential XXE attacks. https://sonarcloud.io/organizations/apache/rules?open=java%3AS2755&rule_key=java%3AS2755 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This addresses SonarQube/SonarCloud quality checks to use safer xml parser.
https://sonarcloud.io/organizations/apache/rules?open=java%3AS2755&rule_key=java%3AS2755
Types of changes