core icon indicating copy to clipboard operation
core copied to clipboard

bug in AnnotationsShiroAuthorizationStrategy implementation

Open shuraa opened this issue 11 years ago • 7 comments

There is a typo in the AnnotationsShiroAuthorizationStrategy#isActionAuthorized method, that affectes checking for RENDER and ENABLE actions of an component's configuration phase.

ShiroSecurityConstraint fail = checkInvalidInstantiation(  findShiroSecurityConstraintAnnotations(componentClassAnnotations), ShiroAction.INSTANTIATE);

but shoud be

ShiroSecurityConstraint fail = checkInvalidInstantiation(findShiroSecurityConstraintAnnotations(componentClassAnnotations), _action);

shuraa avatar Jul 05 '13 11:07 shuraa

+1

sturmm avatar Jul 22 '13 14:07 sturmm

Please create a Pull Request and we will merge it. Thanks!

martin-g avatar Jul 22 '13 14:07 martin-g

Working on it :)

sturmm avatar Jul 22 '13 14:07 sturmm

Thank you!

shuraa avatar Jul 22 '13 15:07 shuraa

How can I build the master?

How can I build the project for executing unit tests? I've checked out the master of the wicketstuff repo. The project needs wicket 6.9.0-SNAPSHOT as dependency. So I checked out build/wicket-6.9.0 branch from the wicket repo. When I execute the maven build here I got the version 6.9.1-SNAPSHOT ... When I checkout the tag wicket-6.9.0 maven will build wicket-6.9.0 (no snapshot). I don't like commit something without being able to execute unit tests.

sturmm avatar Jul 22 '13 19:07 sturmm

Done. Pull request #239

sturmm avatar Jul 23 '13 07:07 sturmm

@RoadRunner120485 : PR seems merged, I guess this can be closed?

tkruse avatar Mar 26 '15 11:03 tkruse