You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Daniel Barclay <no...@sorry.com> on 2001/08/02 19:36:59 UTC
general/8126: URI reported by 404 error page is excessively URL-decoded
>Number: 8126
>Category: general
>Synopsis: URI reported by 404 error page is excessively URL-decoded
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Aug 02 10:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: notpublic@sorry.com
>Release: 2.0.22, 1.3.x
>Organization:
apache
>Environment:
whatever bugs.apache.org and www.apache.org run
>Description:
The error page for status 404 that says:
Not Found
The requested URL /xxxxx/yyyy was not found on this server.
does not correctly report the (path portion of) the requested URI.
It decodes part of the URI. It should report the actual URI.
For example, a request to the URI "http://www.apache.org/foundation%2FFAQ.html"
yields the text "The requested URL /foundation/FAQ.html was not found on this
server."
Note that that statement actually is untrue: The relative URI
/foundation/FAQ.html does exist on the server, it's "/foundation%2FFAQ.html"
which does not.
(It seems that the (partial) request URI is being reported using an
already-decoded string, that string is not being re-encoded as it needs to
be.)
>How-To-Repeat:
Try to access http://www.apache.org/foundation%2FFAQ.html and note the
(partial) URI in the error page.
>Fix:
URL-encode the already-decoded path portion of the URL before writing it into
the error page (or use the original un-decoded version).
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]