The chunk of code to return the directory listing is repeated in the request processor and one of them is just before the ns_returnnotfound... This patch takes care of it, will submit to SDM in a minute.
Index: tcl/request-processor-procs.tcl
===================================================================
RCS file: /cvsroot/openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl,v
retrieving revision 1.7
diff -c -r1.7 request-processor-procs.tcl
*** tcl/request-processor-procs.tcl 2001/11/20 21:49:52 1.7
--- tcl/request-processor-procs.tcl 2002/01/10 10:27:41
***************
*** 673,688 ****
}
}
- if {[info exists dir_index]} {
- set listings [ns_config "ns/server/[ns_info server]"
- "directorylisting" "none"]
- if { [nsv_get rp_directory_listing_p .] } {
- ns_returnnotice 200 "Directory listing of $dir_index"
- [rp_html_directory_listing $dir_index]
- return
- }
- }
-
ad_call_proc_if_exists ds_add rp [list transformation [list notfound $root/$path notfound] $startclicks [clock clicks]]
ns_returnnotfound
} errmsg]] {
--- 673,678 ----