Download & Extend

DAV module: crash! help needed!!!

Project:DAV
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:gilvini
Status:postponed (maintainer needs more info)

Issue Summary

Hello,
I have installed the DAV module 6.x-1.0-alpha1 with Drupal 6.3. I have a comment and a support request.

The first comment is that the module aserts it has a dependency from RDF_DB, however it is my understanding that that functionality has now been incorporated in the main RDF module. After commenting out the dependency in dav.info, DAV seems to work all right with RDF 6.x-1.0-alpha3.

The support request is about authentication. If I enable all DAV permissions for the anonymous user, I can connect to the share and use it (without authentication). If I enable the DAV permissions for all roles except the anonymous user, when connecting I am not asked for authentication, but I rather get a 403 Forbidden. Hence, I cannot use the Drupal accounts to access the share. Any suggestions would be much appreciated.

Thank you for any help.

Comments

#1

Title:DAV module won't ask for authentication» DAV module: error 403

Hi,

I have a similar problem, except that it also happens in anonymous user... Therefore, it doesn't work at all :)

I am trying to use the DAV module and I am unable to connect, even when DAV permissions are enabled for the anonymous user.
I removed the RDF_DB dependency, I have created the "dav" directory in "sites\default\files\" and enabled the DAV Server.

But when I use a WebDAV client such as Naja, Bitkinex, or even Windows XP on the web address "http://***mysite***/?q=dav/" (in fact, for the moment it is "http://localhost/?q=dav/", because I am testing my website on a local machine), I have a "403 Forbidden" error.

FYI, the server is an Apache 2.2, running PHP 5.2.6 & Drupal 6.3, on Windows.

Thank you for your help

#2

Hi,

First of all, it seems that a windows based server is not something to have when trying to use WebDAV.
So, after porting my server on a linux OS made me progress a litlle bit.

Now, I think that I am missing a point somewhere.
When I use Firefox (http://192.168.123.456/?q=dav/), I can access the directory listing.
When I use a webdav client (cadaver, DAVexplorer, Naja, Bitkinex) on either Linux or Windows, I cannot access it.
The issue, it seems, comes from the "?q=dav" part of the address.
Wireshark traces show that when using Firefox, the GET method is correctly built, and the trace module in Drupal shows a GET /?q=dav/
But Wireshark traces for the other clients show "/%3Fq%3Ddav/" instead.
When the request is logged by the trace module, the "/?q=dav/" parameter is missing, probably because it has not been correctly written.

I don't know whether I should post here or if it is a more general problem but since this thread has been opened, I continue here.

I hope that someone can help because I would love to understand how to correctly use WebDAV for Drupal.

Thanks

#3

Status:active» fixed

OK, after lot of strugling, I eventually solved my issues.
Everybody seems to be in holidays at this time of the year, that probably explains why such simple issues had still no answer ;)

So, if someone wants to use this module, what I found out is:

1) Do not use a Windows based server. I don't really know why, but it just doesn't work. Some forums say that the WebDAV implementation in Windows is lousy, but I don't know for sure.

2) For the client applications to work, enable the Clean URLs, because the client appications I used (Bitkinex, Naja, DAVExplorer & cadaver) did not want any "?q=dav" kind of url.

3) You must allow anonymous users to "access content" in the permissions, as it is done by default. That is probably why you had 403 errors, Rismondo.

I hope that this post will help future users!

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

#5

Status:closed (fixed)» active

reopened because the tips in #3 do not help here :(

dav is kind of working when "access dav resources" is granted to anonymous. But there, uploading a file into one of the provided subfolders failed due to a "409, conflict" error. Propably because anon cannot create any content.

Anyway, I'd rather have dav open only for authenticated users or a specific role. So I changed permissions accordingly. I tried Windows Explorer and could not connect. I tried DAVExplorer and could not connect.

I setup a ubuntu box to test the WebDAV to my drupal site (hoping to get more useful error messages ).

I try to use davfs2 to mount the dav in linux

I get asked for user, then for password.
I enter my drupal administrator account details
I get an error:

Could not authenticate to server: rejected Basic challenge

What is going wrong here?

Jens

#6

Hmm... I can only use this module along with the Fileserver module if I grant access to anonymous users for CRUD operations (create, review, update, delete) on nodes... and the File permissions

#7

Title:DAV module: error 403» DAV module: crash! help needed!!!
Version:6.x-1.0-alpha1» 6.x-1.x-dev
Priority:normal» critical
Assigned to:Anonymous» gilvini
Status:active» postponed (maintainer needs more info)

hi,

"1) Do not use a Windows based server. I don't really know why, but it just doesn't work. Some forums say that the WebDAV implementation in Windows is lousy, but I don't know for sure."

well I'm using windows for on my local machine with WAMP+Drupal (all latest versions) and it is not working. I need help? can I try to debug it myself? how?

Thanks,
Gil

#8

BTW guys...

You cannot be logged into Drupal while also trying to use dav with that same user.

nobody click here