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.6 -r1.6.2.1 --- openacs-4/packages/file-storage/www/index.vuh 7 Aug 2017 23:48:11 -0000 1.6 +++ openacs-4/packages/file-storage/www/index.vuh 7 Feb 2022 15:25:59 -0000 1.6.2.1 @@ -23,6 +23,12 @@ -party_id $user_id set file_live_revision [content::item::get_live_revision -item_id $file_item_id] +if {$file_live_revision eq ""} { + # A cr_item might not have any revision that is live. We do not + # deliver the file in this case. + ns_returnnotfound + ad_script_abort +} if {[apm_package_installed_p views]} { views::record_view -object_id $file_item_id -viewer_id $user_id