[Calypso] calypso with davdroid: in the direction of principals

chrysn chrysn at fsfe.org
Sat Nov 9 23:26:47 PST 2013

hello calypso developers,

as to use a davdroid[1] client (android 4.0+, only supports
autoconfiguration) with calypso, i should have started implementing

instead, i hacked my way around it til it fit.

the attached crude patch makes things work so-and-so for davdroid, and
as a side effect also makes calypso usable with acal. (they have in
common that they don't allow some call manual configuration, and others
call infrastructure for supporting broken servers).

among other nasty things, this patch forces users to observe a
`/${USERNAME}/{calendar,addresses}{,-about}` folder structure, where the
-about folders need to be present just so i can easily get a Collection

i like the flexible layout calypso provides, so what we should aim for
as a more permanent solution is a way to attach a label to a folder
whether it contains addresses or calendar items (for calypso, so far
it's perfectly ok to contain both, but clients don't like that). then,
in combination with the permissions system already in place, i think
that there should be purely synthetic (one could say virtual) locations
for urls like principal or the list of calendars accessible from that
principal (which are what now are the -about urls). the latter might in
theory be merged into the principal, but that caused troubles in
practice (might have been an error on my side, i was pretty focused on
just getting it to work). unless webdav specs dictate otherwise, i'd
suggest addresses like /+${USERNAME}{,/addresses,/calendars} for
principal and the lists of addresses and calendars, respectively.

(speaking of slashes: it seems to be calypso's stance that resources'
urls don't end in slashes. caused troubles with davdroid[2], not sure
what to think of it).

best regards

[1] http://davdroid.bitfire.at/
[2] https://github.com/rfc2822/davdroid/issues/64

To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-crude-hack-to-get-operational-with-davdroid.patch
Type: text/x-diff
Size: 8227 bytes
Desc: not available
URL: </pipermail/calypso/attachments/20131110/80133479/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: </pipermail/calypso/attachments/20131110/80133479/attachment.sig>

More information about the Calypso mailing list