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 2011/07/22 17:27:58 UTC
[jira] [Resolved] (SANTUARIO-284)
ElementProxy#getTextFromChildElement() doesn't get all of the text if the
element contains an entity like &
[ https://issues.apache.org/jira/browse/SANTUARIO-284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved SANTUARIO-284.
-------------------------------------------
Resolution: Fixed
> ElementProxy#getTextFromChildElement() doesn't get all of the text if the element contains an entity like &
> ---------------------------------------------------------------------------------------------------------------
>
> Key: SANTUARIO-284
> URL: https://issues.apache.org/jira/browse/SANTUARIO-284
> Project: Santuario
> Issue Type: Bug
> Components: Java
> Affects Versions: Java 1.4.4
> Environment: Using Apache CXF under Linux.
> Reporter: Jeremy Bettis
> Assignee: Colm O hEigeartaigh
> Fix For: Java 1.4.6, Java 1.5
>
> Attachments: ElementProxy.java.patch, santuario-284-revised.patch
>
>
> I have a SOAP message that is signed with a cert that has an ampersand in the IssuerName. ElementProxy#getTextFromChildElement() returns only the text before the &
> See: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/utils/ElementProxy.java?view=markup#l372
> If this code were changed to:
> public String getTextFromChildElement(String localname, String namespace) {
>
> return XMLUtils.selectNode(
> this._constructionElement.getFirstChild(),
> namespace,
> localname,
> 0).getTextContent();
> }
> Then it would work, and it would also be simpler.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira