Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-812

(7.1.0) access log in extended mode with 'cs-uri-query' identifier logs also '?' character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.0.Beta1, 1.4.1.Final
    • None
    • None
    • None
    • Hide

      1. Start EAP and connect to CLI
      2. /subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(extended=true,pattern="cs-uri-query")
      3. reload
      4. perform request on server with some query, e.g.: http://localhost:8080/?dummy=value and see content in EAP_HOME/standalone/log/access_log.log file

      Show
      1. Start EAP and connect to CLI 2. /subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(extended=true,pattern="cs-uri-query") 3. reload 4. perform request on server with some query, e.g.: http://localhost:8080/?dummy=value and see content in EAP_HOME/standalone/log/access_log.log file

      When using access log in extended mode with 'cs-uri-query' identifier, then there is also '?' character included in the logged string, e.g.:

      used URL: localhost:8080/?thisis=sparta
      logged line in access-log: ?thisis=sparta
      expected line in access-log: thisis=sparta
      

      I believe that '?' character should not be part of logged message. Also in EAP6 '?' character was not part of it.

            sdouglas1@redhat.com Stuart Douglas
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: