[jboss-jira] [JBoss JIRA] (WFCORE-696) Eliminate PathAddress creation in AuditContstraint and NonAuditConstraint
Brian Stansberry (JIRA)
issues at jboss.org
Fri May 15 12:35:19 EDT 2015
Brian Stansberry created WFCORE-696:
---------------------------------------
Summary: Eliminate PathAddress creation in AuditContstraint and NonAuditConstraint
Key: WFCORE-696
URL: https://issues.jboss.org/browse/WFCORE-696
Project: WildFly Core
Issue Type: Task
Components: Domain Management
Affects Versions: 1.0.0.CR4
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Priority: Minor
Fix For: 2.0.0.Alpha2
AuditConstraint and NonAuditConstraint are creating a PathAddress for every authorization call. Fix this:
1) The Action class could conceivably provide the PathAddress, same as TargetResource/Attribute does. But, really the address of the action and the target should be the same. The Authorizer impl could probably just add this to enforce that:
assert assertSameAddress(action, target);
2) Given the address of the action and target are the same, AuditConstraint and NonAuditConstraint should drop their check of the action address. They also check the target address, so the action check is redundant.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list