Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roundcube 0.9.git + calendarserver_version 2 #36

Open
schum opened this issue Sep 23, 2012 · 1 comment
Open

Roundcube 0.9.git + calendarserver_version 2 #36

schum opened this issue Sep 23, 2012 · 1 comment

Comments

@schum
Copy link

schum commented Sep 23, 2012

roundcube 0.9.git and Apache/2.2.9 with PHP 5.3.10

i get a "internal server error 500" when enable plugin CardDav (0.5.1) in roundcube config.
the solution:

carddav_addressbook.php
<               if ($rcmail->db->num_rows($result))

---
>               if ($rcmail->db->affected_rows($result))
199c199
<               if ($rcmail->db->num_rows($result))

---
>               if ($rcmail->db->affected_rows($result))
232c232
<               return $rcmail->db->num_rows($result);

---
>               return $rcmail->db->affected_rows($result);
794c794
<               if ($rcmail->db->num_rows($result))

---
>               if ($rcmail->db->affected_rows($result))
carddav.php
<               if ($rcmail->db->num_rows($result))

---
>               if ($rcmail->db->affected_rows($result))

see http://php.net/manual/de/function.mysql-affected-rows.php

Calendar and Contacts Server (http://trac.calendarserver.org)

error : 403 97 "-" "CardDAV PHP/0.5.1" i=1 or=1 t=80.1 err=propfind-finite-depth
the solution:

carddav_backend.php
212c212,222
<               $response = $this->query($this->url, 'PROPFIND');

---
>                $content = '<?xml version="1.0" encoding="utf-8" ?>
>                       <D:sync-collection xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav">
>                       <D:sync-token></D:sync-token>
>                       <D:sync-level>1</D:sync-level>
>                       <D:prop><D:getcontenttype/><D:getetag/><D:allprop/>
>                       <C:address-data><C:allprop/></C:address-data></D:prop>
>                       <C:filter/></D:sync-collection>';
>                $content_type = 'application/xml';
>                $response = $this->query($this->url, 'REPORT', $content, $content_type);

see http://tools.ietf.org/html/rfc6578#section-3.8

@niwrik
Copy link

niwrik commented Sep 24, 2012

Dude! Your rock! So happy right now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants