Forum OpenACS Q&A: Re: WebDAV howto?

Collapse
3: Re: WebDAV howto? (response to 2)
Posted by Bruno Mattarollo on

Hello Dave,

I installed 5.1 (from CVS) and installed and mounted File-Storage (and oacs-dav) ... I created a directory "web" in file-storage and when trying to access http://myhost:myport/dav/web I get this error in the OpenACS error log (see below)... that's because the parameters in the standard config file recommend the /web/${server}/... standard while the documentation for OpenACS recommends to install in /var/lib/aolserver/${server}...

[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV running oacs_dav::authorize
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV conn_setup uri /files/ method PROPFIND user_id 0
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV!! uri /files/
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: DEST = 
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV:item parent folder_id uri /files/
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV!! uri /files/
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV uri /files/ parent_url / folder_id 519
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV setup conn item_id 519
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Notice: OACS-DAV oacs_dav::authorize user_id 0 method propfind item_id 519
[22/Mar/2004:01:37:54][21103.3049835440][-conn:oacs-5-1::3] Error: can't create directory "/web": permission denied
can't create directory "/web": permission denied
    while executing
"file mkdir [file dirname $name]"
    (procedure "tdav::get_prop_file" line 17)
    invoked from within
"tdav::get_prop_file $uri"
    (procedure "tdav::dbm_read_list" line 2)
    invoked from within
"tdav::dbm_read_list $luri"
    (procedure "tdav::get_user_props" line 3)
    invoked from within
"tdav::get_user_props ${folder_uri}${item_uri} $depth $prop_req"
    invoked from within
"foreach i [tdav::get_user_props ${folder_uri}${item_uri} $depth $prop_req] {
            lappend properties $i
        }"
    ("uplevel" body line 27)
    invoked from within
"uplevel 1 $code_block "
    ("1" arm line 1)
    invoked from within
"switch $errno {
                0 {
                    # TCL_OK
                }
                1 {
                    # TCL_ERROR
               ..."
    ("while" body line 20)
    invoked from within
"while { [db_getrow $db $selection] } {
            incr counter
            if { [info exists array_val] } {
                unset array_val
         ..."
    ("uplevel" body line 5)
    invoked from within
"uplevel 1 $code_block "
    invoked from within
"db_with_handle -dbn $dbn db {
        set selection [db_exec select $db $full_statement_name $sql]

        set counter 0
        while { [db_getrow $..."
    (procedure "db_foreach" line 36)
    invoked from within
"db_foreach get_properties "" {
        set name $name
        set etag "1f9a-400-3948d0f5"
        set properties [list]
        # is "D" the namespace??
        lappend properties [lis..."
    (procedure "oacs_dav::impl::content_folder::propfind" line 18)
    invoked from within
"oacs_dav::impl::content_folder::propfind"
    (procedure "AcsSc.dav.propfind.content_folder" line 1)
    invoked from within
"AcsSc.dav.propfind.content_folder"
    ("uplevel" body line 1)
    invoked from within
"uplevel $func_and_args"
    (procedure "apply" line 3)
    invoked from within
"apply $proc_name $arguments"
    (procedure "acs_sc_call" line 6)
    invoked from within
"acs_sc_call dav $method "" $content_type"
    (procedure "oacs_dav::handle_request" line 64)
    invoked from within
"oacs_dav::handle_request cns28 {}"
 

Sorry for the long error log ... that's just for the record, if someone else finds the same error ...