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

[GSS](7.2.0) Access log only logs first occurrence of a header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.1.0.CR3
    • Undertow
    • 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

      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-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: