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

[GSS](7.1.z) UNDERTOW-1240 - Access log only logs first occurrence of a header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.1.CR1, 7.1.1.GA
    • 7.1.0.CR3
    • Undertow
    • None
    • Hide

      1. Set up access logging to include an incoming header:

                          <access-log prefix="access." pattern="%h %l %u %t %r %s %b %{i,X-Forwarded-For}"/>
      

      2. Attempt a request with multiple header occurrences and note the logged results:

      curl -H "X-Forwarded-For: 127.0.0.2" -H "X-Forwarded-For: 127.0.0.3" localhost:8080/app

      Show
      1. Set up access logging to include an incoming header: <access-log prefix= "access." pattern= "%h %l %u %t %r %s %b %{i,X-Forwarded-For}" /> 2. Attempt a request with multiple header occurrences and note the logged results: curl -H "X-Forwarded-For: 127.0.0.2" -H "X-Forwarded-For: 127.0.0.3" localhost:8080/app
    • EAP 7.1.1

      The access log only logs the first occurrence of an incoming request header. This can hide desired or expected values from being logged.

            rhn-support-iweiss Ingo Weiss
            rhn-support-aogburn Aaron Ogburn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: