PHP-Push-2 icon indicating copy to clipboard operation
PHP-Push-2 copied to clipboard

Unable to get it to work with SOGO dav backend.

Open johan-smits opened this issue 12 years ago • 5 comments

I have email sync working ok. But the caldav carddav is not working: Here the config.php: // ********************** // BackendCalDAV settings // ********************** define('CALDAV_SERVER', 'https://myserver.local'); define('CALDAV_PORT', '443'); define('CALDAV_PATH', '/SOGo/dav/%u/Calendar/'); define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder

// **********************
//  BackendCardDAV settings
// **********************
define('CARDDAV_SERVER', 'https://myserver.local');
define('CARDDAV_PORT', '443');
define('CARDDAV_PATH', '/SOGo/dav/%u/Contacts/');
define('CARDDAV_PRINCIPAL', 'personal'); //Personal CardDAV folder

And the combined backend config.php 'backends' => array( 'i' => array( 'name' => 'BackendIMAP', 'config' => self::$BackendIMAP_config, ), /* 'z' => array( 'name' => 'BackendZarafa', 'config' => self::$BackendZarafa_config ),

            'm' => array(
                'name' => 'BackendMaildir',
                'config' => self::$BackendMaildir_config,
            ),
            'v' => array(
                'name' => 'BackendVCardDir',
                'config' => self::$BackendVCardDir_config,
            ),

/ 'c' => array( 'name' => 'BackendCalDAV', 'config' => self::$BackendCalDAV_config, ), / 'l' => array( 'name' => 'BackendLDAP', 'config' => self::$BackendLDAP_config, ), */ 'd' => array( 'name' => 'BackendCardDAV', 'config' => self::$BackendCardDAV_config, ), ),

When I link the account I can enable contacts and calendar, but when I want to enable both in de proper app, it is not listed. I see no warnings in the debug log. Is the configuration correct?

johan-smits avatar Jan 19 '13 14:01 johan-smits

Have you ever been able to get C'Dav to work?

Currently facing a similiar issue, for me CardDAV is not working.

kenodai avatar May 08 '13 07:05 kenodai

When you enable debug log, you should get the full URL Can you ensure this full URL work. Without log or the real domain it is hard to feedback.

xbgmsharp avatar May 08 '13 07:05 xbgmsharp

php-push-2 log:

07/05/2013 10:55:37 [24477] [ INFO] [marc] [androidc1558876726] BackendCardDAV->Logon('http://localhost:80/SOGo/dav/marc/Contacts/') 07/05/2013 10:55:37 [24477] [ INFO] [marc] [androidc1558876726] BackendCardDAV->Logon(): User 'marc' is authenticated on CardDAV 07/05/2013 10:55:39 [24477] [DEBUG] [marc] [androidc1558876726] BackendCardDAV->GetFolderList(): Getting all folders. 07/05/2013 10:55:39 [24477] [DEBUG] [marc] [androidc1558876726] BackendCardDAV->StatFolder('personal') 07/05/2013 10:55:39 [24477] [DEBUG] [marc] [androidc1558876726] BackendCardDAV->GetFolder('personal') 07/05/2013 10:55:39 [24477] [DEBUG] [marc] [androidc1558876726] BackendCardDAV->StatFolder(Abook Id [personal] Abook Name [CardDAV AddressBook])

sogo log:

127.0.0.1 - - [07/May/2013:10:55:37 GMT] "OPTIONS /SOGo/dav/marc/Contacts/ HTTP/1.1" 401 0/0 0.001 - - 0 2013-05-07 10:55:37.907 sogod[3314] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CardDAV PHP/0.6' 127.0.0.1 - - [07/May/2013:10:55:37 GMT] "OPTIONS /SOGo/dav/marc/Contacts/ HTTP/1.1" 200 0/0 0.002 - - 0 2013-05-07 10:55:38.174 sogod[3314] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='DAViCalClient' [..] 127.0.0.1 - - [07/May/2013:10:55:39 GMT] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 208/276 0.004 - - 0 127.0.0.1 - - [07/May/2013:10:55:39 GMT] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 208/276 0.003 - - 0 127.0.0.1 - - [07/May/2013:10:55:39 GMT] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 208/276 0.002 - - 0 127.0.0.1 - - [07/May/2013:10:55:39 GMT] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 208/276 0.001 - - 0 127.0.0.1 - - [07/May/2013:10:55:39 GMT] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 208/276 0.001 - - 0 127.0.0.1 - - [07/May/2013:10:55:39 GMT] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 208/276 0.001 - - 0

apache log:

127.0.0.1 - - [07/May/2013:10:55:37 +0200] "OPTIONS /SOGo/dav/marc/Contacts/ HTTP/1.1" 401 197 "-" "CardDAV PHP/0.6" 127.0.0.1 - - [07/May/2013:10:55:37 +0200] "OPTIONS /SOGo/dav/marc/Contacts/ HTTP/1.1" 200 288 "-" "CardDAV PHP/0.6" [..] 127.0.0.1 - - [07/May/2013:10:55:39 +0200] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 381 "-" "DAViCalClient" 127.0.0.1 - - [07/May/2013:10:55:39 +0200] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 381 "-" "DAViCalClient" 127.0.0.1 - - [07/May/2013:10:55:39 +0200] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 381 "-" "DAViCalClient" 127.0.0.1 - - [07/May/2013:10:55:39 +0200] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 381 "-" "DAViCalClient" 127.0.0.1 - - [07/May/2013:10:55:39 +0200] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 381 "-" "DAViCalClient" 127.0.0.1 - - [07/May/2013:10:55:39 +0200] "PROPFIND /SOGo/dav/marc/personal/ HTTP/1.1" 404 381 "-" "DAViCalClient"

Somehow it seems to drop the Contacts part, when calling.

kenodai avatar May 08 '13 07:05 kenodai

Hey,

first i want to say a big thank you. This is a great project. I have the problems an am curious to know if there ist an solution for that issue.

Pushing Mail and Calendar is working fine, way better than i ever expected. But Contacts doenst work well. I can create a new contact on my iphone which gets synced well (i can see it in my personal folder via web), but i cannot see any contacts on my phone.

my config looks like this (for debugging i am trying carddav only):

define('BACKEND_PROVIDER', "BackendCardDAV");

define('CARDDAV_SERVER', 'https://mail.myserver.de'); define('CARDDAV_PORT', '443'); define('CARDDAV_PATH', '/SOGo/dav/%u/Contacts/'); define('CARDDAV_PRINCIPAL', 'personal'); //Personal CardDAV folder define('CARDDAV_PERSONAL', 'personal'); //Personal CardDAV folder

sogo.log shows: 2013-07-31 12:47:33.332 sogod[5547] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CardDAV PHP/0.6' Jul 31 12:47:33 sogod [5547]: [ERROR] <0x3B500D30[SOGoContactGCSFolder]:personal> DAV property '{DAV:}allprop' has no matching SQL field, response could be incomplete 127.0.0.1 - - [31/Jul/2013:12:47:33 GMT] "REPORT /SOGo/dav/t0000m/Contacts/personal/ HTTP/1.1" 207 2416/279 0.015 - - 0

z-push.log shows: 31/07/2013 12:52:33 [20344] [DEBUG] [t0000m] [ApplC37JTZXEDTWD] ExportChangesDiff->InitializeExporter(): Initializing message diff engine. '0' messages in state 31/07/2013 12:52:33 [20344] [DEBUG] [t0000m] [ApplC37JTZXEDTWD] BackendCardDAV->GetMessageList('personal','0') 31/07/2013 12:52:33 [20344] [DEBUG] [t0000m] [ApplC37JTZXEDTWD] BackendCardDAV->GetMessageList('https://mail.myserver.de:443/SOGo/dav/t0000m/Contacts/personal/') 31/07/2013 12:52:33 [20344] [ INFO] [t0000m] [ApplC37JTZXEDTWD] ExportChangesDiff->InitializeExporter(): Found '0' changes

Any idea?

Greets Tom

t0000m avatar Jul 31 '13 10:07 t0000m

Did you got it working?

johan-smits avatar Dec 01 '13 22:12 johan-smits