Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-551

Support @Secured for @PayloadRoot methods

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.7
    • Fix Version/s: 2.0.1
    • Component/s: Core
    • Labels:
      None

      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.

        Issue Links

          Activity

          sslavic Stevo Slavić created issue -
          cbeams Chris Beams made changes -
          Field Original Value New Value
          Link This issue is depended on by SEC-1284 [ SEC-1284 ]
          cbeams Chris Beams made changes -
          Link This issue is related to SEC-1284 [ SEC-1284 ]
          cbeams Chris Beams made changes -
          Link This issue is depended on by SEC-1284 [ SEC-1284 ]
          arjen.poutsma Arjen Poutsma made changes -
          Fix Version/s 2.0 [ 10981 ]
          arjen.poutsma Arjen Poutsma made changes -
          Fix Version/s 2.0 GA [ 10981 ]
          Fix Version/s 2.0.1 [ 11810 ]
          arjen.poutsma Arjen Poutsma made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Resolved [ 5 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              sslavic Stevo Slavić
            • Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: