[
https://jira.jboss.org/jira/browse/JBSEAM-3681?page=com.atlassian.jira.pl...
]
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