WebDAV extension for Moodle

WebDAV extension for Moodle

by Thirot Jean-Luc -
Number of replies: 10
Hi,

I made a WebDAV extension for the file manager.

It uses HTTP_WebDAV_Server php class and Moodle authentication.
With this extension, teachers are able to manage their course's folders with webdav.
For example :
http://uni.ch/moodle/files/index.php?id=473
http://home/moodle/webdav/file.php/473/

If someone is interested, a zip file is included with a readme for instructions.
I tested it only with a unix server and few windows clients (dreamweaver MX, DAV Explorer, windows explorer).

I am not very sure about security and I would be very happy if you can help me in this field smile.

Any comments welcome !



Average of ratings: -
In reply to Thirot Jean-Luc

Re: WebDAV extension for Moodle

by Dan Stowell -
This is very interesting! Although I can't get it to work.

I have installed the scripts (I also executed the SQL to create the "properties" and "locks" tables - is that required? It isn't mentioned in the README) but can't get anything helpful from the

$DAVCONF_base should be the same as moodles $CFG->dataroot parameter, is that right?

And what do I use for the $DAVCONF_dbf_locks parameter?

Thanks -
Dan
In reply to Dan Stowell

Re: WebDAV extension for Moodle

by Thirot Jean-Luc -
Hi,

The "locks" table is required.
I added $DAVCONF_dbf_locks so you can use any name for the locks table and so you do not need to create a new DB.
Oups I made a mistake, its $DAVCONF_dbt_locks for "table" and not field (sorry)

You have two ways for the WebDAV DB.
1) create a new DB  -> $DAVCONF_db_name
    create the "lock" table -> $DAVCONF_dbf_locks

2) Use an existing DB moodle  for example -> $DAVCONF_db_name
    create the "webdav_lock" table-> $DAVCONF_dbf_locks


Yes $DAVCONF_base is the path to moodledata $CFG->dataroot.
Bu in my config $DAVCONF_base ends with a "/"









In reply to Thirot Jean-Luc

Re: WebDAV extension for Moodle

by Jon Higham -

Sorry, I don't understand any of this. Can anyone who managed to get this to work provide more instructions?

Thanks.

In reply to Jon Higham

Re: WebDAV extension for Moodle

by Pepito Grillo -
OH, I'm looking for something like that, webdav, but I need to sinchronize sunbird *.ics files, so I will program a modue to extract the information from the moodle calendar database and enable, with this way, requests from a remote sunbird with the "load remote calendars" option of sunbird.

Now I'm studing how to implement the 2445 rfc described by Apple with the iCalendar software. I'll start with the easy methods, to made a basic schema for develope a full solution with the nexts releases.

The sunbird software from the mozilla family, have two ways to get remote calendars, over ftp or webdav application protocol, I need help about how to do it, :

Moodle calendar's database,
Moodle user's databases for made personal calendars anotations.
Moodle ftp or webdav support.


I am a student from Pompeu Fabra University from Barcelona at Spain, and we do an asigment with the moodle open software.

In reply to Pepito Grillo

Re: WebDAV extension for Moodle

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
On the calendar we already have an iCal stream:

http://moodle.org/calendar/view.php?view=upcoming&course=1

(see the orange iCal button)
In reply to Martin Dougiamas

Re: WebDAV extension for Moodle

by Patrick Pollet -
Not on my Moodle 1.7.2 ...

- the orange button does not show up and the word "export" does not appear in page's source code.

- Some export scripts are indeed in moodle/calendar but calling directly moodle/calendar/export.php gives an incomplete setup screen and the button "export" always fails.

Apache logs say :

[Mon May 14 10:18:12 2007] [error] [client 134.214.152.108] PHP Fatal error: Unsupported operand types in /var/www/html/
moodle172/calendar/export_execute.php on line 30, referer: http://cipcnet.insa-lyon.fr/moodle/calendar/export.php

Offending line is
$courses = array() + $USER->student + $USER->teacher;

I am running Moodle on PHP 5.2 .





In reply to Pepito Grillo

Re: WebDAV extension for Moodle

by Martín Langhoff -
Pepito - do you mean CalDAV perhaps? Andrew McMillan (a catalyst-er, often hanging out in these forums) knows a lot about it. It'd be great to have CalDAV in Moodle.

I think his project is here http://rscds.sourceforge.net/
In reply to Jon Higham

Re: WebDAV extension for Moodle

by Jason Troy -
I don't understand any of this either. Can we get step-by-step instructions (as if you were talking to a 5-year-old)? :D
In reply to Jason Troy

Re: WebDAV extension for Moodle

by Ian Wild -
Picture of Plugin developers

Hi all,

Sorry for resurrecting an old thread but I was also having problems finding some understandable instructions on configuring WebDAV on the server. I've added some instructions on installing WebDAV on a Windows 2003 SP 2 Applications Server here:

http://docs.moodle.org/en/WebDAV_Setup

I'm not sure if this is the right place to put them but I hope it helps.

Cheers,

Ian.

In reply to Ian Wild

Re: WebDAV extension for Moodle

by Mike Kelly -
Hi Ian,

Thanks for the docs - however I think you're missing one critical bit of info: how does one enable the Admin->Server->WebDAV menu in the first place?

My understanding (and that of many others, judging by the results of a "WebDAV" search on moodle.org) is that Moodle 2.0 includes built-in WebDAV server support. I'm running the latest preview of Moodle 2.0, but can't find a WebDAV config option anywhere.

Are your instructions for Moodle 2.0? Or are they for older releases of Moodle with a WebDAV patch? If the latter, then you may wish to make note of that in your docs. If the former, then please tell us how you got that WebDAV menu in the first place! ;)

Thanks!
Average of ratings: Useful (1)