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

The RunAs annotation doesn't work in servlets with Elytron

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 11.0.0.Alpha1
    • None
    • Security
    • None
    • 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:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: