sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.52k stars 344 forks source link

How can I give a \Sabre\DAV\Client the privileges it needs? #1554

Closed ghost closed 2 months ago

ghost commented 2 months ago

PHP 8.3.8 (cli) (built: Jun 20 2024 02:17:44) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.8, Copyright (c) Zend Technologies with Zend OPcache v8.3.8, Copyright (c), by Zend Technologies

sabre/uri (2.3.3) sabre/xml (2.2.7) sabre/vobject (4.5.5) sabre/event (5.1.4) sabre/http (5.1.10) sabre/dav (4.6.0)

I have a simple program that instantiates a \Sabre\DAV\Client. The code is attached. It reads commands from stdin and writes result status to stdout. It's for doing batch updates of vCards.

I've attached the debug output...it should be pretty easy to follow. How do I give my simple client the privileges it needs to accomplish its simple task.

Personal annotations in the debug output are prefaced by >>>...

I've only blanked out the password for my url (********). The vCard is for a credit union that has a business website so none of the info in the vCard is private. I can connect to this url using my web browser (Safari & Chrome on my Mac), Contacts on my Mac and my iPhone so I KNOW it's not the server.

ghost commented 2 months ago

client.php.txt debug.txt

ghost commented 2 months ago

I created a special version of my CardDAV server without the ACL plugin for batch updates only. This fixed the problem.

ghost commented 2 months ago

Closing