cdav-library icon indicating copy to clipboard operation
cdav-library copied to clipboard

General-purpose WebDAV library

Open georgehrke opened this issue 6 years ago • 6 comments

We should turn this library into a general-purpose webdav library. A plugin system should allow for extensibility.

CalDAV and CardDAV should be moved out of the core lib and into their own plugins. (Their API should remain the same though)

Additional plugins that are needed for the Files App:

  • Files
  • FileComments
  • FileVersioning
  • (Trashbin?)
  • SystemTags

It should be enough if the core lib provides:

  • Parser
  • Request
  • DavObject
  • DavCollection
  • XMLBuilder

(The entire principal stuff should be part of the CalDAV / CardDAV plugin)

georgehrke avatar May 23 '19 15:05 georgehrke

@skjnldsv Do you think it's still worth it or are we happy enough with webdav in Photos and Files?

georgehrke avatar Feb 27 '20 16:02 georgehrke

Well, so far I am happy with those, but i'm just basically doing propfind and other simple stuff.

We need to decide what is our real goal here. DO we want to make a general dav api? Do we want to create a dedicated wrapper with nextcloud functions?

I'm torn between a simple library that is easy to maintain and a complex one that reduce our implementation as devs :grin:

skjnldsv avatar Feb 27 '20 17:02 skjnldsv

Though maybe it can be worth to not create a new one but to improve the webdav one ? The open source world have everything to gain here, and us too I think.

Considering the webdav lib is already providing us the necessary steady base that fits our needs. If we need to change too much for our purpose, it won't make sense.

skjnldsv avatar Feb 27 '20 17:02 skjnldsv

FWIW, another node project already does this: https://github.com/lambdabaa/dav

wilbowma avatar May 09 '21 06:05 wilbowma

@wilbowma https://github.com/lambdabaa/dav is a dead project. We are using https://github.com/perry-mitchell/webdav-client in some part of Nextcloud now

skjnldsv avatar May 09 '21 09:05 skjnldsv

I'm developing an app for nextcloud and I believe you module would help me a ton, can someone provide the basic usage, because I'm quite lost here. Thanks!

oliveiraigorm avatar Mar 24 '22 19:03 oliveiraigorm