Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1252

Resteasy logs Error stacktrace after every unauthorized request

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • None
    • 3.0.13.Final
    • jaxrs
    • None
    • Hide

      1. deploy to EAP application with resteasy role based security enabled
      2. send unauthorized request to the server
      3. you will see the error

      Show
      1. deploy to EAP application with resteasy role based security enabled 2. send unauthorized request to the server 3. you will see the error

    Description

      When using resteasy role based security, Resteasy logs Error stacktrace after every unauthorized requests sent to the server.

      As unauthorized requests are quite common, I think this should be logged at DEBUG/TRACE level.

      Output after unauthorized request:

      16:25:53,090 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-3) RESTEASY002010: Failed to execute: javax.ws.rs.ForbiddenException: HTTP 403 Forbidden
      	at org.jboss.resteasy.plugins.interceptors.RoleBasedSecurityFilter.filter(RoleBasedSecurityFilter.java:45)
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:263)
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236)
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:376)
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:199)
      	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      
      

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: