Author Topic: SOLVED: carddav uses /USER/addressbook/ , how to disable  (Read 4206 times)

Offline roundcubefrank

  • Newbie
  • *
  • Posts: 3
SOLVED: carddav uses /USER/addressbook/ , how to disable
« on: January 04, 2013, 05:41:53 AM »
Hi,
I´m using RC0.8.4 with carddav plugin and a davical server and configured plugins/carddav/config.inc.php with

Code: [Select]
$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:
Code: [Select]
"POST /roundcube/?_task=addressbook&_action=plugin.carddav-addressbook-sync HTTP/1.1" 200 1158
incoming requests to davical server:
Code: [Select]
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
« Last Edit: January 04, 2013, 06:43:25 AM by roundcubefrank »

Offline roundcubefrank

  • Newbie
  • *
  • Posts: 3
Re: carddav uses /USER/addressbook/ , how to disable
« Reply #1 on: January 04, 2013, 06:43:02 AM »
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