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

(7.0.z) Provide username in trace logging for sec constraint during logout

XMLWordPrintable

    • EAP 7.0.2

      With addition of trace logging for security constraint processing, there is added debug message Logging out user... here is the source. Unfortunatelly this will be translated into the log like this:

      DEBUG [io.undertow.request.security] (default task-4) Logging out user org.wildfly.extension.undertow.security.AccountImpl@36ebcb for HttpServerExchange{ GET /secured-web/logout.jsp request {Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Cookie=[JSESSIONID=wLMwH7gyCnqb5ZKcAxcjRF8j7UIuo9FEA38VKe6s.dhcp-10-40-4-199], User-Agent=[Apache-HttpClient/4.5.1 (Java/1.8.0_91)], Host=[127.0.0.1:8080]} response {X-Powered-By=[Undertow/1, JSP/2.3], Server=[JBoss-EAP/7], Content-Type=[text/html;charset=utf-8]}}
      

      Problem I see here is that there is printed only string of AccountImpl instance, not actual user name that has logout.

      Is it possible to provide username instead in this case instead?

            sdouglas1@redhat.com Stuart Douglas
            jstourac@redhat.com Jan Stourac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: