Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23174

Missing validation of @SecuredReturn

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.4.1.Final
    • cdi-extensions
    • None

      CDI extension DeltaSpike allows to create custom autorizer which decides whether the secured method invocation should proceed. It is possible to base the authorization logic on the result of the secured method - using annotation @SecuredReturn. (See documentation of Deltaspike/Security Module)

      When the return type of the secured method doesn't match the type of authorizer method parameter annotated with @SecuredReturn then application fail with exception "SecurityDefinitionException: No matching authorizer found for security". Validator doesn't detect any problems.

      This issue can be reproduced on attached project securedReturn.zip

        1. SecuredReturn-Log
          26 kB
          Lukáš Valach

              jmaury@redhat.com Jeff MAURY
              lvalach_jira Lukáš Valach (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: