Tags:
create new tag
view all tags

Question

I'm having a little problem with the plugin. I hope someone can straighten me out here. This was just handed to me so I can't give specifics as to installation. I can dig for them as necessary, though.

The WebDAVPlugin seems to be working well except for one issue. All documents open as Read-Only from MS WebFolders?. I can edit files from Linux using Konqueror and KWrite. The only thing that looks out of place in the logs are entries that say "Can't open /var/lock/TWiki: No such file or directory". I'm confused as to where this path comes from. My httpd.conf file has "DAVLockDB /var/lock/webdav" for the lock entry. In the /var/lock/webdav directory, I have a TWiki file that updates when ever I make a file change. Could this error be causing my read-only files in MS and how can I track down the cause of the error?

Environment

TWiki version: 1-Sept-04
TWiki plugins: WebDAVPlugin
Server OS: version? kernal 2.4.22
Web server: Apache 1.3.28
Perl version: 5.6.1
Client OS: Win2k
Web Browser: IE6
Categories:  

-- SeanHare - 08 Nov 2004

Answer

Check the setting of the lock database variable in your WebDAVPlugin. This has to be consistent with your DAVLockDB setting. Make sure this area and all files within are read/write for the Apache user.

However, this is not what is causing your read-only problem.

You aren't clear on how you are trying to open the files. If you use an http: URL from Konqueror to open a file, it will give you a RO copy. If you use a webdav: URL it will serve the folder using DAV. When you open a file in KWrite, look at where it wants to save; if it is a local file, you have http-opened the file and not DAV-opened it.

The easiest way to debug a DAV server is to download a client such as DAVE or Cadaver and try typing commands interactively.

-- CrawfordCurrie - 16 Nov 2004

Thanks. That was the problem with the lock db and you are right. It was not causing my RO problem.

I have no problems using Konqueror and a webdav: URL. The problem is strictly under Windows. I can Open the URL as a Web Folder. Once open, I cannot drag & drop into or out of the web folder nor can I create a new file in the folder. When I try any of the above actions I get an error: "An error occurred while copying the file. The requested header was not found." If I open a file from the web folder using MS Office, it will open as Read-only.

-- SeanHare - 17 Nov 2004

Sean, I just noticed you are using Apache 2. As stated in WebDAVPlugin, the module only supports Apache 1.3.

Having said that, I don't think 2.3.28 is a valid Apache version, and you are actually using 1.3.28, yes? On that assumption, you need to inspect your Apache log and access files carefully. They should give more information about what is going on. As described in WebDAVPlugin, you can enable progressively increased amounts of tracing information that may help nail the problem down.

-- CrawfordCurrie - 18 Nov 2004

Yes, that was a typo. We are running Apache 1.3.28. Sorry.

Here are the access and error logs using the DAVMonitor 7 setting. These were from attempts to edit the same file. There are differences in the access.log but I can't relate them to a specific error. It does seem curious to me that the file is getting UNLOCKed before a final GET. Is this why it is being opened as read-only?

Unsuccessful access (Read-only) using Win2k/IE6/Word2000
   access.log:
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "LOCK /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 438
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "LOCK /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 438
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "UNLOCK /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 204 0
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "UNLOCK /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 204 0
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26
192.168.0.122 - SeanHare [22/Nov/2004:09:15:20 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26

   error.log:

Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:C for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:C for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:C for user SeanHare
P:/Sandbox/SeanHareSandbox:C for SeanHare is accessible
DAV: LOCK /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)
Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:V for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:V for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:V for user SeanHare
P:/Sandbox/SeanHareSandbox:V for SeanHare is accessible
DAV: GET /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)
Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:C for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:C for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:C for user SeanHare
P:/Sandbox/SeanHareSandbox:C for SeanHare is accessible
DAV: UNLOCK /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)
Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:V for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:V for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:V for user SeanHare
P:/Sandbox/SeanHareSandbox:V for SeanHare is accessible
DAV: GET /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)

Successful access using Konqueror/KWrite
   access.log:

192.168.0.147 - SeanHare [22/Nov/2004:09:10:37 -0700] "PROPFIND /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 207 1186
192.168.0.147 - SeanHare [22/Nov/2004:09:10:37 -0700] "PROPFIND /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 207 1186
192.168.0.147 - SeanHare [22/Nov/2004:09:10:37 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26
192.168.0.147 - SeanHare [22/Nov/2004:09:10:37 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26
192.168.0.147 - SeanHare [22/Nov/2004:09:10:41 -0700] "HEAD /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 0
192.168.0.147 - SeanHare [22/Nov/2004:09:10:41 -0700] "HEAD /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 0
192.168.0.147 - SeanHare [22/Nov/2004:09:10:42 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26
192.168.0.147 - SeanHare [22/Nov/2004:09:10:42 -0700] "GET /pub/Sandbox/SeanHareSandbox/Text HTTP/1.1" 200 26

   error.log:

Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:V for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:V for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:V for user SeanHare
P:/Sandbox/SeanHareSandbox:V for SeanHare is accessible
DAV: PROPFIND /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)
Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:V for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:V for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:V for user SeanHare
P:/Sandbox/SeanHareSandbox:V for SeanHare is accessible
DAV: GET /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)
Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:V for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:V for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:V for user SeanHare
P:/Sandbox/SeanHareSandbox:V for SeanHare is accessible
DAV: HEAD /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)
Check access Sandbox/SeanHareSandbox//var/www/twiki/pub/Sandbox/SeanHareSandbox/Text:V for SeanHare
Test access to / for user SeanHare
Test access to P:/Sandbox/:V for user SeanHare
Test access to P:/Sandbox/SeanHareSandbox:V for user SeanHare
P:/Sandbox/SeanHareSandbox:V for SeanHare is accessible
DAV: GET /pub/Sandbox/SeanHareSandbox/Text: regular versioned file, exists, base 0 work 1 (twiki Sandbox/SeanHareSandbox)

http.conf: Originally, this was a <Location> entry but I couldn't get MS Webfolders to even connect until I changed it to a <Directory> entry.

 Alias /twiki/pub/ /var/www/twiki/pub
 <Directory /var/www/twiki/pub/>
    DAV On
    TWikiDir pub /var/www/twiki/pub/
    TWikiScript  /var/www/twiki/bin/dav.pl
    Options FollowSymLinks Indexes
    Allow from all
    AuthType Basic
    AuthName "Enter your wiki username"
    AuthUserFile /var/www/twiki/data/.htpasswd
    Require valid-user
 </Directory>

Thanks for the time.

-- SeanHare - 22 Nov 2004

Seetting this to AnsweredQuestions since over a month has passed, although the followup question has not been answered.

-- PeterThoeny - 11 Jan 2005

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2011-03-22 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.