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

[GSS](7.0.z) Access log only logs first occurrence of a header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.0.8.GA
    • 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

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

            rhn-cservice-bbaranow Bartosz Baranowski
            rhn-support-aogburn Aaron Ogburn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: