dupondje / PHP-Push-2

Z-Push Fork With CalDAV/LDAP Support
GNU Affero General Public License v3.0
67 stars 24 forks source link

Can't see contacts on iPhone but can create new #85

Open t0000m opened 10 years ago

t0000m commented 10 years ago

Hey,

first i want to say a big thank you. This is a great project.

I just posted my Issue as an comment to a similar sounding problem, but know i was not shure about. So here i opened this issue on my own.

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] 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] [ApplC37JTZXEXXXX] ExportChangesDiff->InitializeExporter(): Initializing message diff engine. '0' messages in state 31/07/2013 12:52:33 [20344] [DEBUG] [t0000m] [ApplC37JTZXEXXXX] BackendCardDAV->GetMessageList('personal','0') 31/07/2013 12:52:33 [20344] [DEBUG] [t0000m] [ApplC37JTZXEXXXX] BackendCardDAV->GetMessageList('https://mail.myserver.de:443/SOGo/dav/t0000m/Contacts/personal/') 31/07/2013 12:52:33 [20344] [ INFO] [t0000m] [ApplC37JTZXEXXXX ExportChangesDiff->InitializeExporter(): Found '0' changes

Any idea?

Greets Tom

corradofiore commented 10 years ago

I'm having exactly the same issue: I can add contacts from an iOS device but not display existing contacts. Also, any changes issued to contacts on the SOGo side won't be pushed to the iOS device.

In my logs, I can see exactly the same lines that Tom posted (I suppose we're both using the MySQL backend).

@dupondje @xbgmsharp I think we could sponsor this fix. If you could contact me at corrado DOT fiore AT drenalina DOT com, I'll be happy to discuss a deal.

Best, Corrado

soulohsix commented 10 years ago

I have the same problem as well. However, the problem is reversed between ios and android devices. ios can create contacts and they show up on server but not on the device. Android contacts show up on the device but not on the server. Any chance this will be corrected?

corradofiore commented 10 years ago

As far as I can tell, this problem has been fixed in another fork of Z-Push, namely Z-Push-contrib. Given the similar structure, it might serve as a blueprint for the fix.

johan-smits commented 10 years ago

Is there a solution?