Index: openacs-4/packages/file-storage/www/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/index.vuh,v diff -u -r1.1.2.1 -r1.1.2.2 --- openacs-4/packages/file-storage/www/index.vuh 10 Nov 2003 02:44:25 -0000 1.1.2.1 +++ openacs-4/packages/file-storage/www/index.vuh 15 Nov 2003 18:17:12 -0000 1.1.2.2 @@ -10,6 +10,12 @@ set extra_uri [ad_conn path_info] set root_folder [fs_get_root_folder] set file_item_id [fs::get_item_id -name $extra_uri -folder_id $root_folder] +ns_log debug "File Storage index.vuh item_id=$file_item_id URL=[ad_conn url]" +if {[empty_string_p $file_item_id]} { + ns_log debug "File Storage return not found" + ns_return 404 text/plain "File Not Found" + ad_script_abort +} permission::require_permission \ -object_id $file_item_id \ -privilege read \