[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2640) UsernameToken does not correctly handle "Created" element from wsse:Security soap header
MrTed MrTed (JIRA)
jira-events at lists.jboss.org
Tue May 5 09:40:47 EDT 2009
[ https://jira.jboss.org/jira/browse/JBWS-2640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
MrTed MrTed updated JBWS-2640:
------------------------------
Attachment: UsernameToken.java
Modifed UsernameToken.
> UsernameToken does not correctly handle "Created" element from wsse:Security soap header
> ----------------------------------------------------------------------------------------
>
> Key: JBWS-2640
> URL: https://jira.jboss.org/jira/browse/JBWS-2640
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: ws-security
> Affects Versions: jbossws-native-3.1.1
> Environment: AS: jboss-4.2.3.GA on Windows XP
> jbossws-native-3.1.1.GA
> Reporter: MrTed MrTed
> Attachments: UsernameToken.java
>
>
> UsernameToken does not correctly handle "Created" element from wsse:Security soap header.
> Oasis standard describes "Created" element in the following way:
> /wsse:UsernameToken/wsu:Created
> The optional <wsu:Created> element specifies a timestamp used to indicate the creation time. It is defined as part of the <wsu:Timestamp> definition.
> The solution - Constants.WSU_NS should be used instead of Constants.WSSE_NS. "Created" element is described in http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> In the code org.jboss.ws.extensions.security.element.UsernameToken
> "Created" element is recived via:
> Iterator<Element> itCreated = DOMUtils.getChildElements(element, new QName(Constants.WSSE_NS, "Created"));
> instead it should be:
> Iterator<Element> itCreated = DOMUtils.getChildElements(element, new QName(Constants.WSU_NS, "Created"));
> The same goes for line:
> child = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX + ":" + "Created");
> should be:
> child = doc.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Created");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list