I override the CardDavBackend and return in deleteCard function true because i don't want that you can delete the Cards via mobile phone.
When the Phone requests the deletion i got an Error 500.
The prod log writes the following lines:
[2015-08-11 15:20:25] request.INFO: Matched route "secotrust_sabre_dav" (parameters: "_controller": "secotrust.sabredav.controller:execAction", "url": "addressbooks/user/Default/23b5bb10-2ef8-11e5-a79f-000c292a5dfb.vcf", "_route": "secotrust_sabre_dav") [] []
[2015-08-11 15:20:25] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2015-08-11 15:20:25] request.CRITICAL: Uncaught PHP Exception LogicException: "getContent() can only be called once when using the resource return type." at /opt/lampp/htdocs/xyz/app/bootstrap.php.cache line 984 {"exception":"[object] (LogicException(code: 0): getContent() can only be called once when using the resource return type. at /opt/lampp/htdocs/xyz/app/bootstrap.php.cache:984)"} []
[2015-08-11 15:20:25] security.DEBUG: Write SecurityContext in the session [] []
In Secotrust\Bundle\SabreDavBundle\SabreDav\HttpRequest i changed
$this->setBody($request->getContent(true), true);
to:
$this->setBody($request->getContent(), true);
that works for me.
I override the CardDavBackend and return in deleteCard function true because i don't want that you can delete the Cards via mobile phone.
When the Phone requests the deletion i got an Error 500.
The prod log writes the following lines:
In Secotrust\Bundle\SabreDavBundle\SabreDav\HttpRequest i changed
to:
that works for me.