[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1020) Issues with Drools debug logging

Christian Bauer (JIRA) jira-events at lists.jboss.org
Mon Mar 12 07:17:48 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1020?page=comments#action_12355802 ] 
            
Christian Bauer commented on JBSEAM-1020:
-----------------------------------------

This now results in an infinite loop (!) with the AS consuming 100% CPU:

rule RestrictRaiseAccessLevel
    no-loop;
    activation-group "permissions"
when
    c: PermissionCheck(name == "Node", action == "changeAccessLevel");

    Node(desiredWriteAccessLevel : writeAccessLevel, desiredReadAccessLevel : readAccessLevel, nodeCreator : createdBy)
    Role(userAccessLevel : accessLevel -> (desiredReadAccessLevel.intValue() <= userAccessLevel.intValue() && desiredWriteAccessLevel.intValue() <= userAccessLevel.intValue()) )

then
    c.grant();
    modify(c);
end;

rule RestrictRaiseAccessLevel2
    no-loop;
    activation-group "permissions"
when
    c: PermissionCheck(name == "Node", action == "changeAccessLevel");

    Node(desiredWriteAccessLevel : writeAccessLevel, desiredReadAccessLevel : readAccessLevel, nodeCreator : createdBy)
    User(authenticatedUserId : id -> (nodeCreator == null || nodeCreator.getId().equals(authenticatedUserId)) )

then
    c.grant();
    modify(c);
end;


> Issues with Drools debug logging
> --------------------------------
>
>                 Key: JBSEAM-1020
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1020
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Security
>            Reporter: Christian Bauer
>         Assigned To: Shane Bryzak
>            Priority: Minor
>
> I want to see what is going on when my rules are evaluated, according to the Drools docs this is how:
>                 workingMemory.addEventListener( new DebugWorkingMemoryEventListener() );
> I have to do that in code right now, would be nice to be able to configure the identity component externally in config file. It also doesn't work, at least not in JBoss with a WAR deployment. I don't see any debug printed on System.out. Task: Ask the drools guys how we get logging for Seam users.

-- 
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 seam-issues mailing list