[OGo-Developer] Changing the folder creation paradigm
Wolfgang Sourdeau
developer@opengroupware.org
Fri, 14 Sep 2007 13:48:47 -0400
> I suppose by "lowest positive integer" you mean that you want to use =
a=20
> numeric primary key in the folder table?
Yes. But not specifically. I saw it as a way to generate a small unique =
id. But I just noticed I might as well use the globallyUniqueId method.
> Hm. Outlook actually treats those values as two separate entities (fo=
lder=20
> name and PR_DISPLAY_NAME) and so does CalDAV/WebDAV etc. Though the n=
ames=20
> are usually 1:1 the same (and things start to get confusing when you =
rename=20
> a folder).
That's one other problem. At least when the relative URL is cryptic, the=
user will not try to associate it semantically with the folder name.
> I see the biggest problem with external clients which create new =20
> collections. If you create a new calendar via CalDAV the client would =
most=20
> likely issue a MKCALENDAR request with a readable URL name. Actually =
the=20
> point is that the client will use whatever it likes (most likely the =
name=20
> the user chooses for the calendar properly encoded in UTF-8/URL encod=
ing).
> And IMHO it would be quite bad not to use the name requested by the c=
lient=20
> (only leads to a sequence of other issues).
But we could assume those clients are generating URL-safe names, so it's=
alright.
> Another minor annoyance is that browsing using Cadaver (and pretty mu=
ch=20
> every other generic WebDAV agent) will be much harder, with just the =
numeric=20
> index exposed.
As mentionned above, I can use globallyUniqueId instead. And the default=
folder would be kept to the name "personal".
> IMHO you should maintain the folder displayname and the folders relat=
ive URL=20
> as separate entities (I think we currently miss a separate displaynam=
e which=20
> we should add to allow for arbitary crap in the displayname - and in =
the=20
> same run we could add a folder description [longer text associated wi=
th the=20
> folder aka CALDAV:calendar-description]).
For the display name, there is the column "c_foldername", the id being a=
lready set in "c_path4".
> In any case you do not really get around implementing proper encoding/=
=20
> escaping if you want to allow external clients to create ABs/cals ...
I think this is already handled in DAV. The problems this change would s=
olve are mainly related to the web ui actually...
Thanks!
--=20
Wolfgang Sourdeau
T: +1 514 989-2000 ext. 2602 C: +1 514 755-3520
AVIS - Ce courriel pourrait contenir des renseignements confidentiels ou=
privil=E9gi=E9s. Si vous n'en =EAtes pas le v=E9ritable destinataire, ve=
uillez nous
aviser imm=E9diatement. Merci.
NOTICE - This e-mail may contain confidential or privileged information.=
If you are not the intended recipient, please notify us immediately. Tha=
nk you.