Roundcube Community Forum

 

SOLVED: carddav uses /USER/addressbook/ , how to disable

Started by roundcubefrank, January 04, 2013, 05:41:53 AM

Previous topic - Next topic

roundcubefrank

Hi,
I´m using RC0.8.4 with carddav plugin and a davical server and configured plugins/carddav/config.inc.php with

$rcmail_config['def_carddavs'] = array(
  'Work' => array(
                   'user' => '%u',
                   'pass' => '%p',
                   'url' => 'http://example.com/%u/addresses/',
                   'readonly' => false,
                 )
);


The sync with davical works fine but roundcube always tries first to sync to /USER/addressbook/ but this entry does not exist. Then it syncs to /USER/addresses/ which works fine.
Here are log details:

roundcube webserver:
"POST /roundcube/?_task=addressbook&_action=plugin.carddav-addressbook-sync HTTP/1.1" 200 1158

incoming requests to davical server:
x.x.x.x - - [04/Jan/2013:11:19:23 +0100] "OPTIONS /USER/addressbook/ HTTP/1.1" 401 40 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8) Gecko/20121005 Thunderbird/10.0.8 Lightning/1.2.1"
x.x.x.x - USER [04/Jan/2013:11:19:23 +0100] "OPTIONS /USER/addressbook/ HTTP/1.1" 404 37 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8) Gecko/20121005 Thunderbird/10.0.8 Lightning/1.2.1"
x.x.x.x - - [04/Jan/2013:11:19:23 +0100] "OPTIONS /USER/addresses/ HTTP/1.1" 401 40 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8) Gecko/20121005 Thunderbird/10.0.8 Lightning/1.2.1"
x.x.x.x - USER [04/Jan/2013:11:19:23 +0100] "OPTIONS /USER/addresses/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8) Gecko/20121005 Thunderbird/10.0.8 Lightning/1.2.1"
x.x.x.x - USER [04/Jan/2013:11:19:23 +0100] "REPORT /USER/addresses/ HTTP/1.1" 207 125477 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8) Gecko/20121005 Thunderbird/10.0.8 Lightning/1.2.1"



How to get rid of the request to "/USER/addressbook/"? This is not configured in config.inc.php and I wonder why carddav tries to sync.


Frank

roundcubefrank

Hi,
I solved it. There were entries in table carddav_server for "/USER/addressbook/" and in table users->preferences I changed carddav_addressbook4 to carddav_addressbook6 and now it works.
I think roundcube should delete and not use such entries in database themself and use $rcmail_config['def_carddavs']

Frank