[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3681) WTF code in RuleBasedPermissionResolver
Shane Bryzak (JIRA)
jira-events at lists.jboss.org
Fri Nov 7 05:12:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shane Bryzak closed JBSEAM-3681.
--------------------------------
Fix Version/s: 2.1.1.CR1
Resolution: Done
Assignee: Shane Bryzak
Oops, I blame gremlins! Fixed in SVN, thanks :)
> WTF code in RuleBasedPermissionResolver
> ---------------------------------------
>
> Key: JBSEAM-3681
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3681
> Project: Seam
> Issue Type: Bug
> Components: Security
> Affects Versions: 2.1.0.SP1
> Reporter: egor kolesnikov
> Assignee: Shane Bryzak
> Fix For: 2.1.1.CR1
>
>
> We've got some lulz reading this today:
> public class RuleBasedPermissionResolver implements PermissionResolver, Serializable
> //skipped
> private void synchronizeContext()
> {
> Identity identity = Identity.instance();
>
> getSecurityContext().insert(identity.getPrincipal());
>
> if (getSecurityContext() != null) // just a BRILLIANT check after calling insert() on the previous line
> {
> //skipped
> }
> }
> }
> Please fix this "professional open source" code in the next version :)
--
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 seam-issues
mailing list