Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8441

The RunAs annotation doesn't work in servlets with Elytron

    XMLWordPrintable

Details

    • Hide

      Use attached reproducer - it originally comes from AS TS ServletRunAsTestCase class.

      Deploy and run the server, then call

      curl http://localhost:8080/servlet-runas/RunAsAdminServlet
      

      If the default server configuration is used (standalone.xml with legacy security), then the expected response comes:

      init method passed.Hello!
      doGet method passed.Hello!
      

      When Elytron configuration is used (standalone-elytron.xml, then @RunAs annotation doesn't work in the servlet and response is:

      init method did not pass.
      doGet method did not pass.
      
      Show
      Use attached reproducer - it originally comes from AS TS ServletRunAsTestCase class. Deploy and run the server, then call curl http: //localhost:8080/servlet-runas/RunAsAdminServlet If the default server configuration is used ( standalone.xml with legacy security), then the expected response comes: init method passed.Hello! doGet method passed.Hello! When Elytron configuration is used ( standalone-elytron.xml , then @RunAs annotation doesn't work in the servlet and response is: init method did not pass. doGet method did not pass.

    Description

      The @javax.annotation.security.RunAs doesn't work in servlets when Elytron is used.

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: