
|
If you were logged in you would be able to see more operations.
|
|
|
|
In between Apache phases:
/* [2] filename-to-URI translation */
ap_hook_translate_name(PythonTransHandler,
NULL, NULL, APR_HOOK_MIDDLE);
/* [3] header parser */
ap_hook_header_parser(PythonHeaderParserHandler,
NULL, NULL, APR_HOOK_MIDDLE);
There is actually another phase for mapping the file name against actual storage. The core (default) handler in Apache for this phase does various directory/file tree walking through filesystem directories assocated with Directory/File directives, looking at .htaccess files, evaluating whether symlinks can be followed etc. Basically it works out whether a file might exist and whether it is a candidate for use prior to applying later access/authentication phase tests.
In some cases you might want to stop all these checks happening, for example, in mod_proxy it stops it as the resources are actually on a different system and it would be a waste of time. Similarly, looks like Tomcat may also override it, possibly mapping the filename to its own concept of a file store.
In order to fill out the holes, seems it may be appropriate for mod_python to allow this phase to be replaced. Ie., have:
/* [2 1/2] map to storage */
ap_hook_map_to_storage(PythonStorageHandler,
NULL, NULL, APR_HOOK_MIDDLE);
Other changes in src/mod_python.c would need to be made as appropriate.
|
|
Description
|
In between Apache phases:
/* [2] filename-to-URI translation */
ap_hook_translate_name(PythonTransHandler,
NULL, NULL, APR_HOOK_MIDDLE);
/* [3] header parser */
ap_hook_header_parser(PythonHeaderParserHandler,
NULL, NULL, APR_HOOK_MIDDLE);
There is actually another phase for mapping the file name against actual storage. The core (default) handler in Apache for this phase does various directory/file tree walking through filesystem directories assocated with Directory/File directives, looking at .htaccess files, evaluating whether symlinks can be followed etc. Basically it works out whether a file might exist and whether it is a candidate for use prior to applying later access/authentication phase tests.
In some cases you might want to stop all these checks happening, for example, in mod_proxy it stops it as the resources are actually on a different system and it would be a waste of time. Similarly, looks like Tomcat may also override it, possibly mapping the filename to its own concept of a file store.
In order to fill out the holes, seems it may be appropriate for mod_python to allow this phase to be replaced. Ie., have:
/* [2 1/2] map to storage */
ap_hook_map_to_storage(PythonStorageHandler,
NULL, NULL, APR_HOOK_MIDDLE);
Other changes in src/mod_python.c would need to be made as appropriate.
|
Show » |
| There are no comments yet on this issue.
|
|