<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>Hello Patrick,<br /><br />sorry for my late update on this. The good news is that I managed to get a working configuration in the meanwhile. Your hint about adjusting the uri was correct. In addition the only remaining problem was the discovery of the addressbook by the syncevolution config process. I figured out that the database url was the problem. Instead of  "database=<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/</a>" I had to use "database=<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/addressbook"</a> to get the sync finally working. Unfortunately I don't have the testserver set up anymore so that I can't give more detailed debug information at the moment in case you would maybe want to further investigate the syncevolution behavior. But once I set it up again for my live system I will let you know in case I'm facing the same issue again. I will probably use the Baikal server variant instead of the pure sabredav server variant so possibly the issue may not reappear in case the Baikal configuration for the sabredav server is different. </p>
<p><br />I'd like to express my appreciation again for your kind assistance. I'm very much looking forward to have a live system running soon which allows me to have a modern custom, transparent and reliable PIM organisation for probably at least the next 5 to 10 years. After realizing that the Palm PIM organisation which I used for more than 10 years wouldn't fit into my expectations of efficient and reliable organisation anymore in the future it took me three years to draft and evaluate a new concept (of course I only had limited time to work on it). I'm so glad that I finally found a convincing solution in which syncevolution will play an important role, especially for the contacts part.</p>
<p>Thanks again.</p>
<p>Helge</p>
<p> </p>
<p>Am 2014-08-20 10:51, schrieb Patrick Ohly:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>On Wed, 2014-08-20 at 00:53 +0200, Helge Kraak wrote:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Am 18.08.2014 um 15:47 schrieb Patrick Ohly:</blockquote>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">On Mon, 2014-08-18 at 15:02 +0200, Helge Kraak wrote:</blockquote>
</blockquote>
<pre>[...]</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">syncevolution --configure SSLVerifyServer=False \ --template SyncEvolution_Client \ remoteDeviceId=PN70M9J5V7JX username=admin password=admin \ sync=two-way \ databaseUser=admin \ databasePassword=admin \ backend=carddav \ database=<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/</a> \ <a href="mailto:Palm-TH55@webdav">Palm-TH55@webdav</a> addressbook</blockquote>
</blockquote>
</blockquote>
<pre>[...]</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Does this lead to a configuring that your phone can use?</blockquote>
In my Synthesis SyncML client I get the error message: DB not found (404).</blockquote>
<pre>Synthesis does not use "addressbook" as uri by default, as far as I
remember. Try editing your Synthesis SyncML client settings and enter
"addressbook" as uri for contacts.

Alternatively, you can also add "uri = contacts" to the configure line
above to set that as alias for the the "addressbook" source.</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Maybe important: Instead of "database=<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/</a>" I used "database=<a href="http://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/">http://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/</a> " for the config this time as I also didn't use https in the SyncML client (the SSL connection for the Syncevolution server doesn't work yet in my test server setup but the SSL for the Sabredav server works already). The client always was set up for no SSL connection before so it was a potential mistake to set up the syncevolution server with SSL database link.</blockquote>
<pre>SSL for SyncML and SSL for WebDAV are conceptually independent (*). It's
okay to use it for one and not the other.

(*) The only caveat is that the SSLVerifyServer=False property applies
to both, for practical reasons.</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">########### FOLLOWING YOUR ADVICES FROM YOUR EMAIL FROM JANUARY 22, 2014 I REPEATED THE COMMAND ABOVE WITH ADJUSTED DATABASE SETTINGS: 1. VARIANT: <a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/</a> INSTEAD OF <a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/</a> syncevolution --configure SSLVerifyServer=False \ --template SyncEvolution_Client \ remoteDeviceId=PN70M9J5V7JX username=admin password=admin \ sync=two-way \ databaseUser=admin \ databasePassword=admin \ backend=carddav \ database=<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/</a> \ <a href="mailto:Palm-TH55@webdav">Palm-TH55@webdav</a> addressbook RETURNS "[INFO] addressbook: looking for databases... [INFO] addressbook: start database search at <a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/</a>, from sync config <a href="mailto:'palm-th55@webdav">'palm-th55@webdav</a>', source config 'addressbook', database='<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/</a>' [INFO] addressbook: okay"</blockquote>
</blockquote>
</blockquote>
<pre>[...]</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">This looks wrong. I doubt that the parent collection really is an address book collection.</blockquote>
</blockquote>
<pre>Thanks for the database scan output. It shows that both start URLs lead
to the same collection,
<a href="https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/default/">https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/default/</a> That means that the variant where that URL is used for "database" is the correct one.

The second one is incorrect and should have been rejected by
SyncEvolution. The code checks that it can find a contact collection
using the given database URL, but later SyncEvolution will use the URL
as-is and then fail. The initial check must test the given URL instead
of searching for databases. I will fix that.

In general, the advice for setting up CardDAV/CalDAV is to first
configure username/password/syncURL in a target-config. Then either
don't specify "database" properties at all (and rely on SyncEvolution to
pick the default ones automatically) or to use --print-databases to find
the right ones (if not known already). See
<a href="https://syncevolution.org/documentation/syncevolution-usage#caldav-and-carddav">https://syncevolution.org/documentation/syncevolution-usage#caldav-and-carddav</a>
</pre>
</blockquote>
</body></html>