On Fri, 2012-01-27 at 19:10 +0100, Martin Ott wrote:
Am 27.01.2012 17:49, schrieb Patrick Ohly:
> Regarding the problem, I suspect that it is because your manually chosen
> "database" doesn't end in a slash. Arguably this is something that
> SyncEvolution should be handle, so I'll fix the code once I have your
> Do contacts and calendar work when adding a trailing / to the URL?
you are right, adding the trailing slash to the database URL solved the
issue. I also think it's a good idea from a user point of view to make
the database param more robust to user input :-)
Done on master branch:
Author: Patrick Ohly <patrick.ohly(a)intel.com>
Date: Mon Feb 20 17:25:36 2012 +0100
WebDAV: better path normalization (user config)
SyncEvolution strips the collection path from hrefs to produce
relative IDs. This assumed that the path ends in a slash, which was
not always the case when users manually set the URL (syncURL,
database). As a result, IDs had a leading slash, which later were
treated as absolute file paths on the server, leading either to
authentication or 404 errors.
Now the path is normalized as a collection when parsing the URL, which
adds the expected slash.
If I do a 1.2.3, then I'll probably backport that and all other CalDAV
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.