You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2012/09/12 00:21:10 UTC
[jira] [Updated] (QPID-4297) Broker should not rely on
Subject.getPrincipals.iterator().next() to find 'username principal'
[ https://issues.apache.org/jira/browse/QPID-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith Wall updated QPID-4297:
-----------------------------
Status: Ready To Review (was: In Progress)
> Broker should not rely on Subject.getPrincipals.iterator().next() to find 'username principal'
> ----------------------------------------------------------------------------------------------
>
> Key: QPID-4297
> URL: https://issues.apache.org/jira/browse/QPID-4297
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Keith Wall
> Assignee: Keith Wall
> Fix For: 0.19
>
>
> The Broker uses the idiom Subject.getPrincipals.iterator().next() in a couple of places to find the principal corresponding to the username of the logged on user. This assumes that corresponding principal will always be returned first. This may not be a safe assumption across different JVM providers, different JVM versions or when running Qpid with a container.
> This should be replaced by our utility methods AuthenticatedPrincipal#getOptionalAuthenticatedPrincipalFromSubject and
> AuthenticatedPrincipal#getAuthenticatedPrincipalFromSubject
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org