Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12216

Log WARN if application specifies @RunAsPrincipal and not @RunAs

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 18.0.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      Log WARN if application specifies @RunAsPrincipal and not @RunAs

      As per: https://docs.jboss.org/author/display/WFLY10/EJB+3+Reference+Guide

      Specification of Run-as Principal using Metadata Annotations
      ...
      Using this annotation without specifying a run-as role is considered an error.

      For example:

      @RunAs("admin")
      @RunAsPrincipal("MyBean")
      

      If a user specifies @RunAsPrincipal and not @RunAs (or the xml equivalent), then the user shows up as anonymous, we should log a warning to let the application know that there is an issue so that they know it needs to be corrected.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tmiyar Teresa Miyar Gil
                  Reporter:
                  tmiyar Teresa Miyar Gil
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: