[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2189) Attribute EncodingType is required for Nonce element.
Sławomir Wojtasiak (JIRA)
jira-events at lists.jboss.org
Wed May 21 07:19:00 EDT 2008
[ http://jira.jboss.com/jira/browse/JBWS-2189?page=all ]
Sławomir Wojtasiak updated JBWS-2189:
-------------------------------------
Attachment: patch_usernametoken.txt
Proposed patch.
> Attribute EncodingType is required for Nonce element.
> -----------------------------------------------------
>
> Key: JBWS-2189
> URL: http://jira.jboss.com/jira/browse/JBWS-2189
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: ws-security
> Affects Versions: jbossws-native-3.0.1
> Reporter: Sławomir Wojtasiak
> Attachments: patch_usernametoken.txt
>
>
> If element Nonce of UsernameToken have no "EncodingType" attribute set then following exception is thrown:
> Unsupported nonce encoding type:
> Problem is localized here:
> String encodingType = elem.getAttribute("EncodingType");
> if (encodingType != null && !Constants.BASE64_ENCODING_TYPE.equalsIgnoreCase(encodingType))
> throw new WSSecurityException("Unsupported nonce encoding type: " + encodingType);
> getAttribute method always returns empty string if attribute doesn't have specified value.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list