You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2010/12/07 13:02:12 UTC
[jira] Updated: (SANTUARIO-201) contextChild parameter of
Transform.getInstance may be null
[ https://issues.apache.org/jira/browse/SANTUARIO-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh updated SANTUARIO-201:
------------------------------------------
Fix Version/s: Java 1.4.4
Assignee: (was: XML Security Developers Mailing List)
> contextChild parameter of Transform.getInstance may be null
> -----------------------------------------------------------
>
> Key: SANTUARIO-201
> URL: https://issues.apache.org/jira/browse/SANTUARIO-201
> Project: Santuario
> Issue Type: Bug
> Components: Java
> Affects Versions: Java 1.4.2
> Environment: Operating System: All
> Platform: PC
> Reporter: Julien Pasquier
> Priority: Trivial
> Fix For: Java 1.4.4
>
>
> The following method of the class org.apache.xml.security.transforms.Transform does not test if the contextChild parameter is null:
> public static final Transform getInstance(
> Document doc,
> String algorithmURI,
> Element contextChild)
> I propose this modified code to fix this bug:
> public static final Transform getInstance(
> Document doc, String algorithmURI, Element contextChild)
> throws InvalidTransformException {
> HelperNodeList contextNodes = null;
> if (contextChild != null) {
> contextNodes = new HelperNodeList();
> XMLUtils.addReturnToElement(doc, contextNodes);
> contextNodes.appendChild(contextChild);
> XMLUtils.addReturnToElement(doc, contextNodes);
> }
> return Transform.getInstance(doc, algorithmURI, contextNodes);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.