Make sure to read this post before raising a thread here:
Then tell us:
-
What language is this for?
- Java
-
Which rule?
- S2755
-
Why do you believe it’s a false-positive/false-negative?
- Our code sets
transformerFactory.setAttribute(ACCESS_EXTERNAL_DTD, "");
but still triggers a failure of the rule “Disable access to external entities in XML parsing”
- Our code sets
-
Are you using
- SonarCloud
-
How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
-
Checking the docs on TransformerFactory’s setAttribute() and "ACCESS_EXTERNAL_DTD (“an empty string to deny all access to external references”) seem to say differently.
