You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
flexy1994
changed the title
Got 500 while deleting cards.
Get 500 while deleting cards.
Aug 11, 2015
My question would be, why is there a second call to $request->getContent(true), there should only be one instance of the Secotrust\Bundle\SabreDavBundle\SabreDav\HttpRequest class?
There isn't a second instance of the Secotrust\Bundle\SabreDavBundle\SabreDav\HttpRequest.
his happend only when I delete, update or create a card.
It crashes befor it goes to my custom CardDav Backend.
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.
The text was updated successfully, but these errors were encountered: