Hello!

To summarize the thread from earlier this year, there were three
problems with using SabreDAV:
     1. configuring with SSL verification turned off
     2. actually finding the right URL for the address book collection
     3. creating events (possibly related to not using the right URL)

On Mon, 2014-08-18 at 15:02 +0200, Helge Kraak wrote:
> #######
> 
> 
> When I apply as third command (no addressbook at the end of the
> command)
> syncevolution --configure SSLVerifyServer=False
> --template SyncEvolution_Client --sync-property
> remoteDeviceId=ST23K3J5I4JX username=admin
> password=admin --source-property addressbook/uri=addressbook
>  sync=two-way Palm-TH55@webdav 
> 
> IT RETURNS
> 
> 
> [INFO] addressbook: okay
> [INFO] calendar: looking for databases...
> [INFO] calendar: backend failed: error code from SyncEvolution
> authorization failed (remote, status 401): calendar: syncURL not
> configured and username admin does not contain a domain
> [INFO] memo: looking for databases...
> [INFO] memo: backend failed: error code from SyncEvolution
> authorization failed (remote, status 401): memo: syncURL not
> configured and username admin does not contain a domain
> [INFO] todo: looking for databases...
> [INFO] todo: backend failed: error code from SyncEvolution
> authorization failed (remote, status 401): todo: syncURL not
> configured and username admin does not contain a domain
> 
> 
> AND THE COMMAND 
> syncevolution --print-config -q @webdav addressbook
> 
> RETURNS:
> 
> "[addressbook]
> backend = CardDAV
> database =
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/
> # databaseFormat = 
> databaseUser = admin
> databasePassword = admin"
> 
> -> THIS IS THE SAME RESULT AS WITH THE FORMER SYNCEVOLUTION VERSION IN
> JANUARY

Looks okay. To get rid of the attempts to configure calendar/memo/todo,
add "addressbook" after "Palm-TH55@webdav".

> ######
> 
> 
> BUT I SEE A DIFFERENT RESULT HERE:
> When I try your combined command (I have to
> include SSLVerifyServer=False again to make it work)
> 
> syncevolution --configure SSLVerifyServer=False \
>               --template SyncEvolution_Client \
>               remoteDeviceId=PN70M9J5V7JX username=admin password=admin \
>               sync=two-way \
>               databaseUser=admin  \
>               databasePassword=admin \
>               backend=carddav  \
>               
> database=https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/
>   \
>               Palm-TH55@webdav addressbook
> 
> IT RETURNS
> 
> "[INFO] addressbook: looking for databases...
> [INFO] addressbook: start database search at
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/, 
> from sync config 'palm-th55@webdav', source config 'addressbook', 
> database='https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/'
> [INFO] addressbook: okay"
> 
> 
> INSTEAD OF 
> "[INFO] addressbook: looking for databases...
> [INFO] addressbook: no database to synchronize
> [ERROR] addressbook: no database to synchronize"
> 
> 
> WITH THE FORMER SYNCEVOLUTION VERSION IN JANUARY
> AND FOR
> 
> syncevolution --print-config -q @webdav addressbook
> 
> IT RETURNS
> 
> "[addressbook]
> backend = CardDAV
> database =
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/
> # databaseFormat = 
> databaseUser = admin
> databasePassword = admin"

Might be okay. I'm unsure whether
"https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/"; is 
the correct URL. It looks suitable to SyncEvolution, at least.

Does this lead to a configuring that your phone can use?

> ###########
> 
> 
> FOLLOWING YOUR ADVICES FROM YOUR EMAIL FROM JANUARY 22, 2014 I
> REPEATED THE COMMAND ABOVE WITH ADJUSTED DATABASE SETTINGS:
> 
> 
> 1. VARIANT: 
> 
> 
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/ 
> INSTEAD OF 
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/ 
> syncevolution --configure SSLVerifyServer=False \
>               --template SyncEvolution_Client \
>               remoteDeviceId=PN70M9J5V7JX username=admin password=admin \
>               sync=two-way \
>               databaseUser=admin  \
>               databasePassword=admin \
>               backend=carddav  \
>               
> database=https://localhost:443/sabredav/addressbookserver.php/addressbooks/  \
>               Palm-TH55@webdav addressbook
> 
> RETURNS
> 
> "[INFO] addressbook: looking for databases...
> [INFO] addressbook: start database search at
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/,
> from sync config 'palm-th55@webdav', source config 'addressbook',
> database='https://localhost:443/sabredav/addressbookserver.php/addressbooks/'
> [INFO] addressbook: okay"
> 
> 
> AND
> syncevolution --print-config -q @webdav addressbook
> 
> RETURNS
> 
> 
> "[addressbook]
> backend = CardDAV
> database =
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/
> # databaseFormat = 
> databaseUser = admin
> databasePassword = admin"

This looks wrong. I doubt that the parent collection really is an
address book collection.

Can you run "SYNCEVOLUTION_DEBUG=1 syncevolution --daemon=no
--print-databases backend=carddav SSLVerifyServer=False
syncURL=https://localhost:443/sabredav/addressbookserver.php/addressbooks/ 
username=admin password=admin" and attach the output?

I want to see what SabreDAV says about the content of this collection.

> #####
> 
> 
> 2. VARIANT: 
> 
> 
> https://localhost:443/sabredav/addressbookserver.php/
> INSTEAD OF 
> https://localhost:443/sabredav/addressbookserver.php/addressbooks/admin/ 
> syncevolution --configure SSLVerifyServer=False \
>               --template SyncEvolution_Client \
>               remoteDeviceId=PN70M9J5V7JX username=admin password=admin \
>               sync=two-way \
>               databaseUser=admin  \
>               databasePassword=admin \
>               backend=carddav  \
>               database=https://localhost:443/sabredav/addressbookserver.php/  
> \
>               Palm-TH55@webdav addressbook
> 
> RETURNS
> 
> "[INFO] addressbook: looking for databases...
> [INFO] addressbook: start database search at
> https://localhost:443/sabredav/addressbookserver.php/, from sync
> config 'palm-th55@webdav', source config 'addressbook',
> database='https://localhost:443/sabredav/addressbookserver.php/'
> [INFO] addressbook: okay"
> 
> 
> AND
> syncevolution --print-config -q @webdav addressbook
> 
> RETURNS
> 
> 
> "[addressbook]
> backend = CardDAV
> database = https://localhost:443/sabredav/addressbookserver.php/
> # databaseFormat = 
> databaseUser = admin
> databasePassword = admin"

Same here.

-- 
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.



_______________________________________________
SyncEvolution mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution

Reply via email to