While at it, any reasons to support "private" for file.vuh? I played around with it a little bit and could not get it to work and I'm wondering if we need this for files in the first place....
The check for item_id or revision_id looks like this:
set revision_id [content::item::get_best_revision -item_id $object_id]
if {$revision_id eq ""} {
set revision_id $object_id
set item_id [content::revision::item_id -revision_id $object_id]
} else {
set item_id $object_id
}
if {$revision_id eq ""} {
ns_returnnotfound
ad_script_abort
}
Did I miss any real world example where I would end up stranded (where the file exists but the revision_id would be empty)?