[SWS-551] Support @Secured for @PayloadRoot methods Created: 12/Aug/09  Updated: 04/May/12  Resolved: 21/Mar/11

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 1.5.7
Fix Version/s: 2.0.1

Type: Improvement Priority: Major
Reporter: Stevo Slavić Assignee: Arjen Poutsma
Resolution: Cannot Reproduce Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SEC-1284 Support 'proxy-target-class' attribut... Closed
Reference URL: http://forum.springsource.org/showthread.php?p=251127

 Description   

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.



 Comments   
Comment by Shaun Domingo [ 26/Jan/10 ]

Hi Arjen,

Is there any way you can give any guidance/help around how to get around this problem, or if/when this will be fixed?

We really appreciate all the hard work that goes into this project.

Cheers,
Shaun

Comment by Arjen Poutsma [ 26/Jan/10 ]

Shaun, we'll take a look at this for 2.0.

Comment by Arjen Poutsma [ 21/Mar/11 ]

With the new @Endpoint programming model in 2.0, I can't seem to reproduce this.

If it still doesn't work for you, feel free to reopen and attach a testcase which illustrates the problem.

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Mon Dec 18 16:42:07 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.