Skip to content

Allow apps to add dav collections #7689

Description

@rullzer

We have an event now to add plugins by apps.

$dispatcher->dispatch('OCA\DAV\Connector\Sabre::addPlugin', $event);

However, it would also make sense to allow apps to register collections on the new dav endpoint:

So basically in

This would allow us to start writing dav endpoints for trashbin and versions etc.

The way I see it there are two approaches here:

  1. Dispatch an event
  • Pro: Very easy
  • Con: How to make sure 3rdparty app doesn't hijack the versions/trashbin endpoints?
  1. Add and entry in info.xml there is then a sort of collections manager?
  • Pro: We can give higher preference to "official" apps.
  • Cons: more enginering work

Opinions: @MorrisJobke @nickvergessen @blizzz @schiessle @georgehrke

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions