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

    • 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.

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

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

              Created:
              Updated:
              Resolved: