[jboss-jira] [JBoss JIRA] (WFLY-12216) [GSS](7.2.z) Log WARN if application specifies @RunAsPrincipal and not @RunAs

Teresa Miyar Gil (Jira) issues at jboss.org
Thu Jun 20 10:06:00 EDT 2019


     [ https://issues.jboss.org/browse/WFLY-12216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Teresa Miyar Gil moved JBEAP-17084 to WFLY-12216:
-------------------------------------------------

          Project: WildFly  (was: JBoss Enterprise Application Platform)
              Key: WFLY-12216  (was: JBEAP-17084)
         Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
    Fix Version/s:     (was: 7.2.4.GA)


> [GSS](7.2.z) Log WARN if application specifies @RunAsPrincipal and not @RunAs
> -----------------------------------------------------------------------------
>
>                 Key: WFLY-12216
>                 URL: https://issues.jboss.org/browse/WFLY-12216
>             Project: WildFly
>          Issue Type: Bug
>            Reporter: Teresa Miyar Gil
>            Assignee: Teresa Miyar Gil
>            Priority: Major
>
> 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:
> {code}
> @RunAs("admin")
> @RunAsPrincipal("MyBean")
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list