Befox / cdav

Dolibarr module to access calendars and address book from CalDAV/CardDAV tools
GNU General Public License v3.0
47 stars 28 forks source link

Multi company compatibility #24

Open dbeniamine opened 6 years ago

dbeniamine commented 6 years ago

I tried to use cdav with the well known multicompany module and I encountered two issues :

  1. It is not possible to transmit the entity in cdav's url parameters

    Their is actually two parts on this problem :

    1. While cdav does correctly a GETPOST() on entity, multicompany version 8.0.0 does not correcty use it during auth. I am sending a patch to multicompany's maintainer
    2. If we use an url like server.php?entity=2 with cdav, Sabre\Dav does not ignore the ?.. part and gives the following error : LogicException /custom/cdav/server.php?entity=2 out of base uri
  2. Another issue is that dav resources are stored by username yet with multicompany, username or not necessarily unique, is it possible to store resources by id, like for ICS urls ?

Ics urls seems to work well

jpfox commented 6 years ago

Hi We have not see a multi company environment yet.

  1. about entiry parameter, you could pass it by adding a slash : server.php/?entity=2
  2. About dav resources, do you mean webdav resources or Caldav and carddav resources ?
dbeniamine commented 6 years ago

Hello,

  1. I can pass server.php/?entity=2 but I get the error LogicException /custom/cdav/server.php?entity=2 out of base uri, from what I understand it means that Sabre\Dav consider the ?args as part of the filesystem
  2. I am trying to access caldav ressources