You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/05/10 15:19:06 UTC

[Bug 62368] New: Print unparsed URI in the 'URI incorrectly encoded' error message

https://bz.apache.org/bugzilla/show_bug.cgi?id=62368

            Bug ID: 62368
           Summary: Print unparsed URI in the 'URI incorrectly encoded'
                    error message
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: hwibell@gmail.com
  Target Milestone: ---

Currently, the error 'URI incorrectly encoded' error message uses `r->uri`
which may be unhelpful. For example, issuing the following command:

$ python -c 'print "GET /index.html?foo=bar\x0F HTTP/1.1\r\nHost:
localhost:8080\r\n\r\n"' | nc localhost 8080

leads to the following error:

[Thu May 10 11:03:39.048134 2018] [core:debug] [pid 22836:tid 123145529880576]
protocol.c(838): [client ::1:56524] AH03454: HTTP Request Line; URI incorrectly
encoded: '/index.html'

whereas using `r->unparsed_uri` would show:

[Thu May 10 11:06:14.515688 2018] [core:debug] [pid 31904:tid 123145333022720]
protocol.c(838): [client ::1:56533] AH03454: HTTP Request Line; URI incorrectly
encoded: '/index.html?foo=bar\x0f'

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62368] Print unparsed URI in the 'URI incorrectly encoded' error message

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62368

--- Comment #1 from Hank Ibell <hw...@gmail.com> ---
Created attachment 35925
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35925&action=edit
Proposed patch for trunk

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62368] Print unparsed URI in the 'URI incorrectly encoded' error message

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62368

Hank Ibell <hw...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 62368] Print unparsed URI in the 'URI incorrectly encoded' error message

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62368

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
           Keywords|                            |FixedInTrunk
             Status|NEW                         |RESOLVED

--- Comment #2 from Eric Covener <co...@gmail.com> ---
Thanks, committed in r1831772

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org