httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41960] - Apache is not using custom content-types when accessing content-negotiated resources
Date Wed, 28 Mar 2007 18:20:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41960>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41960





------- Additional Comments From basant.kukreja@sun.com  2007-03-28 11:20 -------
When we send request /conneg-test/design, in mod_nogotiation walks through the
directory and after it finds a matching design.html then it starts a sub
request calling ap_sub_req_lookup_dirent. (In apache 1.3.x
ap_sub_req_lookup_file is invoked)

Sub request will eventually call ap_process_request_internal (called
process_request_internal in 1.3.x). Processing of ap_process_request_internal
is changed from 2.2.x from 1.3.x. In apache 1.3, location_walk was called
unconditionally while in apache 2.2.x ap_location_walk is called only file_req
is false.

request.c
-------------
    int file_req = (r->main && r->filename);
...
    if (!file_req) {
        if ((access_status = ap_location_walk(r))) {
...


So as a result ap_location_walk is not called for sub request in apache 2.2.x while
it is getting called for 1.3.x.
Because of this difference in logic, different behaviour is observed in
different apache versions ( 1.3.x and  2.2.x)

I guess that the above mentioned change in apache 2.2.x is made because of
performance reason.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message