Skip to content

Support @Secured for @PayloadRoot methods [SWS-551] #677

@gregturn

Description

@gregturn

Stevo Slavić opened SWS-551 and commented

Currently when message dispatcher tries to invoke method of an @Endpoint, where method has been @Secured using Spring-AOP JDK dynamic proxy, IllegalArgumentException gets thrown (from MethodEndpoint's invoke) with message "object is not an instance of declaring class". Guess it has to do with fact that method is actually being invoked on a proxy implementing same interface as endpoint whilst it seems that instance of endpoint is expected. Haven't tried yet but I think that if CGLIB proxy was used that this should already work.


Affects: 1.5.7

Reference URL: http://forum.springsource.org/showthread.php?p=251127

Issue Links:

  • SEC-1284 Support 'proxy-target-class' attribute for global-method-security element of security namespace

5 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions