Package: lighttpd Version: 1.4.30-1 Severity: normal Tags: patch upstream forwarded-upstream
Hi. Please apply the following trivial patch. It changes current behavior nicely handling cases where requested files have names too long, instead of throwing HTTP 500 Error (Internal Server Error). It's important to remark that this is a proper behavior. Other httpd's out there also throw 4xx errors in this cases too, like Apache (403) and nginx (404). Find upstream report here[1]. Please consider applying it. Cheers, Dererk ref: 1. http://redmine.lighttpd.net/issues/2396 -- BOFH excuse #295: The Token fell out of the ring. Call us when you find it.
Author: Ulises Vitulli <der...@debian.org> Description: Nicely handle files with names too long to be read throwing a 404. Bug: http://redmine.lighttpd.net/issues/2396 --- lighttpd-1.4.30.orig/src/response.c +++ lighttpd-1.4.30/src/response.c @@ -611,6 +611,8 @@ handler_t http_response_prepare(server * buffer_reset(con->physical.path); return HANDLER_FINISHED; + case ENAMETOOLONG: + /* file name to be read was too long. Unable to be read, throw a 404 */ case ENOENT: con->http_status = 404;
signature.asc
Description: OpenPGP digital signature