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 2008/03/22 20:51:56 UTC

DO NOT REPLY [Bug 44656] New: Tries to retrive error document 404 instead of 406 when negotiation fails

https://issues.apache.org/bugzilla/show_bug.cgi?id=44656

           Summary: Tries to retrive error document 404 instead of 406 when
                    negotiation fails
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_negotiation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: aleksandersen+issues.apache.org@runbox.com


I looked trough my error logs and discovered this problem:
> Negotiation: discovered file(s) matching
> request: /var/www/organservice/organrepairs (None could be negotiated). 
> File does not exist: /var/www/shared/errors/404
This happend at the same time from the same host/user.

Should not this have trigger a 406 Negotiation Failed responds instead of 
a 404 Not Found? Apache understands that the request could not be 
negotiated, but the next line says it did not find the not found error 
document.

My configuration clarly spesifies “ErrorDocument 
406 /var/www/shared/errors/406” which does exist. The 404 page, 
ironically enough, does not exsist. The error documents must be 
negotiated.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 44656] Tries to retrive error document 404 instead of 406 when negotiation fails

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





--- Comment #1 from Nick Kew <ni...@webthing.com>  2008-03-22 13:29:20 PST ---
In principle I think you're right.  However, a 406 response should also send a
list of available variants, and the code for that doesn't seem (at a glance) to
be implemented, so it's not quite a trivial change.

Are you getting this error when you'd expect something different, such as
selecting an available variant?  Or is it just the response code that's wrong?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 44656] Tries to retrive error document 404 instead of 406 when negotiation fails

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





--- Comment #2 from Da’an <al...@runbox.com>  2008-03-22 13:39:37 PST ---
I would expect it to negotiate or send a 406 document with a list (generated by
PHP and exec("ls")) of available variants. (Or the default 406 error.) I would
not expect it to try to retrieve the 404 error document instead.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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