[Calypso] calypso with davdroid: in the direction of principals
jelmer at samba.org
Tue Apr 15 17:05:31 PDT 2014
On Wed, Apr 16, 2014 at 12:03:05AM +0200, chrysn wrote:
> thanks for your reviews.
> On Tue, Apr 15, 2014 at 03:01:37AM +0200, Jelmer Vernooij wrote:
> > I can confirm that this works with DAVDroid. I needed the attached
> > patch though, since I'm using fake ACLs.
> indeed, i missed that. included in my integration branch now.
> > There are some other rough edges (not introduced by this patch). For
> > example, I have a couple of invalid vcards (no FN) that cause
> > tracebacks from calypso and then empty files in the repository.
> could you send a traceback and an exemplary file?
I haven't yet worked out which file is problematic, but here is the
Traceback (most recent call last):
File "/home/jelmer/calypso/calypso/__init__.py", line 455, in do_PUT
xmlutils.put(self.path, webdav_request, self._collection, context=context)
File "/home/jelmer/calypso/calypso/xmlutils.py", line 238, in put
collection.append(name, webdav_request, context=context)
File "/home/jelmer/calypso/calypso/webdav.py", line 491, in append
File "/home/jelmer/calypso/calypso/webdav.py", line 421, in create_file
path = self.write_file(item)
File "/home/jelmer/calypso/calypso/webdav.py", line 402, in write_file
File "/home/jelmer/calypso/calypso/webdav.py", line 169, in text
File "/usr/lib/pymodules/python2.7/vobject/base.py", line 186, in serialize
return behavior.serialize(self, buf, lineLength, validate)
File "/usr/lib/pymodules/python2.7/vobject/behavior.py", line 148, in serialize
if validate: cls.validate(obj, raiseException=True)
File "/usr/lib/pymodules/python2.7/vobject/behavior.py", line 91, in validate
raise base.ValidateError(m % (cls.name, val, key))
ValidateError: 'VCARD components must contain at least 1 FN'
With that error message, it should be fairly easy to reproduce.
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the Calypso