actframework / act-aaa-plugin

Use OSGL aaa library to mange Authentication/Authorization/Accounting for ActFramework Application
Apache License 2.0
6 stars 2 forks source link

Provide more information when AAA block linked user permission #16

Open leeaee opened 7 years ago

leeaee commented 7 years ago

When AAA block linked user permission, it will throw an exception when 'null' information message. Could AAA provide more information about this kind of exception?

org.osgl.aaa.NoAccessException: null
    at org.osgl.aaa.AAA.noAccess(AAA.java:1937)
    at org.osgl.aaa.AAA.requirePermission(AAA.java:843)
    at org.osgl.aaa.AAA.requirePermission(AAA.java:864)
    at org.osgl.aaa.AAA.requirePermission(AAA.java:799)
    at org.osgl.aaa.AAA.requirePermission(AAA.java:633)
    at cc.bable.probe.api.UserEndpoint.getUserProfile(UserEndpoint.java:33)
    at cc.bable.probe.api.UserEndpointMethodAccess.invoke(Unknown Source)
    at act.handler.builtin.controller.impl.ReflectedHandlerInvoker.invoke(ReflectedHandlerInvoker.java:634)
    at act.handler.builtin.controller.impl.ReflectedHandlerInvoker.handle(ReflectedHandlerInvoker.java:309)
    at act.handler.builtin.controller.ControllerAction.handle(ControllerAction.java:53)
    at act.handler.builtin.controller.RequestHandlerProxy._handle(RequestHandlerProxy.java:494)
    at act.handler.builtin.controller.RequestHandlerProxy.handle(RequestHandlerProxy.java:203)
    at act.handler.DelegateRequestHandler.handle(DelegateRequestHandler.java:47)
    at act.route.Router$ContextualHandler.handle(Router.java:1351)
    at act.xio.NetworkHandler$3.run(NetworkHandler.java:150)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)