WebDAV for DokuWiki

:!: This feature has been stopped for the ICKE project because focus shifted to other features. Please contact us if you're interested in a working WebDAV solution for DokuWiki. Given enough interest by possible customers we might consider picking up work on this again.

Aim is to create a WebDAV interface that will present all DokuWiki contents as a virtual filesystem. A flexible interface mechanism should allow to plug filters between the save and load mechanisms. Filter could then convert between DokuWiki syntax and other formats (like OpenOffice) on the fly.

Example virtual directory structure:

  • media
    • all media namespaces and files here
  • txt
    • raw access to the page files
  • odt
    • pages with on-the-fly Open Office conversion

Implementation

The whole thing is implemented as plugin in lib/plugins/webdav using SabreDAV.

For each „type“ or „filter“ a file is placed in lib/plugins/webdav/types. Eg. lib/plugins/webdav/types/media.php handles the access to the media files. The file contains two classes, one for handling directories (and listings) the other handles files.

Progress is checked into our git repository at http://github.com/cosmocode/webdav

Open Questions

  • Authentification
    • Currently only via HTTP Basic Auth?
    • Can we implement Basic Auth without relying on mod_php?
    • BasicAuth without SSL is not allowed by the WebDAV specs
      • most clients ignore this
      • Windows needs a registry change
    • DigestAuth would be better
      • We may need to store passwords in MD5 or create a second password file
  • Authentication has to be triggered by a 401 header, but this disables anonymous access
    • Add another virtual folder at top? → anonymous / login
  • Windows requires the DAV endpoint to be at the root of the domain
    • have some subdomain configuration example?
    • have some simple include to be copied to root?
  • Should the history of pages be available somehow? Can WebDAV history support be used?
  • What happens when I upload a „Upper Case.jpg“ via WebDAV, but DokuWiki saves it at „upper_case.jpg“?
lab/webdav.txt · Zuletzt geändert: 2010/08/11 11:43 von Andreas Gohr
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0