You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2009/08/28 20:16:37 UTC
DO NOT REPLY [Bug 47762] New: contextChild parameter of
Transform.getInstance may be null
https://issues.apache.org/bugzilla/show_bug.cgi?id=47762
Summary: contextChild parameter of Transform.getInstance may be
null
Product: Security
Version: Java 1.4.2
Platform: PC
OS/Version: All
Status: NEW
Severity: trivial
Priority: P2
Component: Signature
AssignedTo: security-dev@xml.apache.org
ReportedBy: julienpasquier@free.fr
--- Comment #0 from Julien Pasquier <ju...@free.fr> 2009-08-28 11:16:37 PDT ---
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);
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 47762] contextChild parameter of
Transform.getInstance may be null
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47762
coheigea <co...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from coheigea <co...@apache.org> 2009-08-31 04:08:52 PDT ---
Fix applied.
Colm.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.