http://www.politiker-stopp.de/gfx/politiker-stopp-print.png

Benjamin Schieder

ANOTHER MINDBLOWING BUG IN OWNCLOUDS CARDDAV IMPLEMENTATION

2013 April 01 | 2 comments

This is NOT an April Fools joke, even though it very well might be…

Once again owncloud is messing stuff up.
There’s a problem with handling groups and ownCloud with ownCloud behaving incorrectly.

If you create a group, you get back the following information:

array (
'http/1.1 204 no content' => '',
'date' => 'Mon, 01 Apr 2013 08:44:15 GMT',
'server' => 'Apache/2.2.16 (Debian)',
'x-powered-by' => 'PHP/5.3.3-7+squeeze15',
'expires' => 'Thu, 19 Nov 1981 08:52:00 GMT',
'cache-control' => 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0',
'pragma' => 'no-cache',
'etag' => '1',
'set-cookie' => 'PHPSESSID=00000; path=/; HttpOnly',
'content-length' => '0',
'vary' => 'Accept-Encoding',
'content-type' => 'text/html',
)

ownCloud sends back the etag ‘1’. But when we send back the etag ‘1’ it doesn’t match anything, because internally ownCloud uses md5(vcard) as the etag.
A workaround is to set the Timeout to ‘0’ which forces RCMCardDAV to update the group vcard and thus getting the correct etag before adding new users.

UPDATE: This is logged as issue #920 and fixed in git and probably next release.

Category: blog

Tags: TechSucks ownCloud carddav rcmcarddav roundcube


2 Comments

From: phsc
2013-05-21 20:46

Ich habe gerade Roundcube 0.9.1 und ownCloud 5.0.6 aufgesetzt und für die Synchronisation der Kontakte rcmcarddav 0.8.
Nun bekomme ich jedes Mal, wenn ich einen Kontakt update folgenden Fehler: [21-May-2013 19:54:52 +0200]: cdfopen: Could not read reply header: authentication error: 412 Precondition failed [21-May-2013 19:54:52 +0200]: Updating card on server failed
Wenn ich in der DB schaue, dann sehe ich, dass als Etag 1 zurückgeliefert wird von ownCloud. Könnte es also sein, dass ownCloud diesen Bug nicht nur beim Hinzufügen von Gruppen hat?

From: blindcoder
2013-05-22 09:17

Am Besten versuchst du es mal mit dem aktuellen 'dev' branch von github, wenn das dann immer noch auftaucht, waere das sehr doof :-(

Post a comment

All comments are held for moderation; basic HTML formatting is accepted.

Name: (required)
E-mail: (required, not published)
Website: (optional)
Comment: