[Davical-general] Can't create contacts using Mac Address Book

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

[Davical-general] Can't create contacts using Mac Address Book

Matt Brock
Hi.

I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:

[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.

I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?

My Mac is running OS X 10.7.4.

Cheers,

Matt.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Jens Langner
Hi Matt,

I had the exact same problem with DAViCal and several OSX and iOS client combinations. unfortunately I didn't find any solution nor seemed the developer team motivated enough to analyze/fix the problem (probably due to personal bindings to Android).

The only solution I found so far was to switch to the recently released owncloud4 release (owncloud.org) which works flawlessly so far with any combination of any apple caldav/carddav client. Owncloud really did a big leap compared to version 3 and I can only guess that I will not be the only one switching to owncloud due to the problems discussed.

Best regards
Jens

Am 30.06.2012 um 10:06 schrieb Matt Brock <[hidden email]>:

> Hi.
>
> I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:
>
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.
>
> I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?
>
> My Mac is running OS X 10.7.4.
>
> Cheers,
>
> Matt.
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Davical-general mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/davical-general


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Ján Máté-2
In reply to this post by Matt Brock
Hi,


Creating Address Object Resources

   Clients populate address book collections with address object
   resources.  The URL for each address object resource is entirely
   arbitrary and does not need to bear a specific relationship (but
   might) to the address object resource's vCard properties or other
   metadata.  New address object resources MUST be created with a PUT
   request targeted at an unmapped URI.  A PUT request targeted at a
   mapped URI updates an existing address object resource.

But your log says, that the client tries to use POST request "Response status 500 for POST".

So if your configuration not contains exotic rewrite rules (or something similar) then report
this bug to Apple.

JM


On Jun 30, 2012, at 10:06 AM, Matt Brock wrote:

Hi.

I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:

[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.

I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?

My Mac is running OS X 10.7.4.

Cheers,

Matt.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Ján Máté-2
In reply to this post by Jens Langner
Hi Jens,

On Jun 30, 2012, at 2:58 PM, Jens Langner wrote:

> Hi Matt,
>
> I had the exact same problem with DAViCal and several OSX and iOS client combinations. unfortunately I didn't find any solution nor seemed the developer team motivated enough to analyze/fix the problem (probably due to personal bindings to Android).
>
> The only solution I found so far was to switch to the recently released owncloud4 release (owncloud.org) which works flawlessly so far with any combination of any apple caldav/carddav client. Owncloud really did a big leap compared to version 3 and I can only guess that I will not be the only one switching to owncloud due to the problems discussed.

the only problem with Owncloud is, that it uses SabreDav as backed and SabreDav has no real CalDav/CardDav support (not implemented REPORT+sync-collection). It supports only Webdav - so for example a simple synchronization requires N x more data (N = number of contacts/events) to download and process in comparison with Davical.

JM (CardDavMATE developer)

>
> Best regards
> Jens
>
> Am 30.06.2012 um 10:06 schrieb Matt Brock <[hidden email]>:
>
>> Hi.
>>
>> I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:
>>
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.
>>
>> I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?
>>
>> My Mac is running OS X 10.7.4.
>>
>> Cheers,
>>
>> Matt.
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Davical-general mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/davical-general
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Davical-general mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/davical-general


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Matt Brock
In reply to this post by Jens Langner
Hi Jens.

I hadn't heard of ownCloud before you suggested it. I just installed it on my server (pretty straightforward), and five minutes later I have my contacts and calendars all syncing perfectly between my Macs and my iPhone.

Thank you very much for the suggestion - I'm very pleased to finally have a solution that works. :-)

Take care,

Matt.

On 30 Jun 2012, at 13:58, Jens Langner wrote:

> Hi Matt,
>
> I had the exact same problem with DAViCal and several OSX and iOS client combinations. unfortunately I didn't find any solution nor seemed the developer team motivated enough to analyze/fix the problem (probably due to personal bindings to Android).
>
> The only solution I found so far was to switch to the recently released owncloud4 release (owncloud.org) which works flawlessly so far with any combination of any apple caldav/carddav client. Owncloud really did a big leap compared to version 3 and I can only guess that I will not be the only one switching to owncloud due to the problems discussed.
>
> Best regards
> Jens
>
> Am 30.06.2012 um 10:06 schrieb Matt Brock <[hidden email]>:
>
>> Hi.
>>
>> I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:
>>
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.
>>
>> I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?
>>
>> My Mac is running OS X 10.7.4.
>>
>> Cheers,
>>
>> Matt.
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Davical-general mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/davical-general
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Davical-general mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/davical-general


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Matt Brock
In reply to this post by Ján Máté-2
With ownCloud I see in the log that adding contacts uses PUT rather than POST, so I suspect there's an issue in the way DAViCal initially negotiates with Address Book which causes Address Book to attempt a POST instead of a PUT. At the moment I don't really have the time or the need to investigate further, and if DAViCal is mainly catering to Android users then I'm guessing it wouldn't be worth the time spent doing so; but feel free to get back to me if you're keen to follow it up further and I'll see what I can do to help.

Cheers,

Matt.

On 30 Jun 2012, at 21:18, Ján Máté wrote:

> Hi,
>
> CardDav RFC - http://www.rfc-editor.org/rfc/rfc6352.txt says:
>
> Creating Address Object Resources
>
>    Clients populate address book collections with address object
>    resources.  The URL for each address object resource is entirely
>    arbitrary and does not need to bear a specific relationship (but
>    might) to the address object resource's vCard properties or other
>    metadata.  New address object resources MUST be created with a PUT
>    request targeted at an unmapped URI.  A PUT request targeted at a
>    mapped URI updates an existing address object resource.
>
> But your log says, that the client tries to use POST request "Response status 500 for POST".
>
> So if your configuration not contains exotic rewrite rules (or something similar) then report
> this bug to Apple.
>
> JM
>
>
> On Jun 30, 2012, at 10:06 AM, Matt Brock wrote:
>
>> Hi.
>>
>> I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:
>>
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.
>>
>> I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?
>>
>> My Mac is running OS X 10.7.4.
>>
>> Cheers,
>>
>> Matt.
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Davical-general mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/davical-general
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Ján Máté-2
I just tested the latest Davical with Mac OS X 10.7.4 (build 11E53) and Address Book.app 6.1.2 (build 1090) with enabled request/response debugging. Here is the log:

LOG: :***************** Request Header ****************
LOG: :POST /caldav.php/company/customers/f635b598-da2e-437a-8eaa-ce7c7f06277f.vcf
LOG: headers:-->Host: server.com:8443
LOG: headers:-->User-Agent: AddressBook/6.1.2 (1090) CardDAVPlugin/200 CFNetwork/520.4.3 Mac_OS_X_Server/10.7.4
LOG: headers:-->Content-Length: 177
LOG: headers:-->Accept: */*
LOG: headers:-->Accept-Language: en-us
LOG: headers:-->Accept-Encoding: gzip, deflate
LOG: headers:-->Content-Type: text/vcard; charset=utf-8
LOG: headers:-->Authorization: Delicious tasty password eaten by debugging monster!
LOG: headers:-->Connection: keep-alive
LOG: :******************** Request ********************
LOG: request:-->BEGIN:VCARD
LOG: request:-->VERSION:3.0
LOG: request:-->PRODID:-//Apple Inc.//Address Book 6.1.2//EN
LOG: request:-->N:New;Contact;;;
LOG: request:-->FN:New Contact
LOG: request:-->REV:2012-07-01T15:42:52Z
LOG: request:-->UID:f635b598-da2e-437a-8eaa-ce7c7f06277f
LOG: request:-->END:VCARD
LOG: request:-->

LOG: :Response status 500 for POST /caldav.php/company/customers/f635b598-da2e-437a-8eaa-ce7c7f06277f.vcf
LOG: :***************** Response Header ****************
LOG: headers:-->Server: 1.1
LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
LOG: headers:-->Content-type: text/plain; charset="utf-8"
LOG: :******************** Response ********************
LOG: response:-->The application program does not understand that request.


So the result is very simple: Apple = FAIL

There is no any negotiation which can cause the client to use POST instead of PUT. PUT is defined in the RFC as the ONLY method for creating new contacts and if any client tries to use POST (for any reason) then the client not respects RFC. It looks like Apple client has a hidden bug which occurs only when it communicates with Davical server (but this is not Davical bug).

Report this bug to Apple and wait for a fix.

JM

p.s.: it is interesting that Apple has 2 separate CardDav client implementations - the iOS implementation has no major problems but the Lion implementation simply not works (and this is not the only problem - for example in Lion you cannot use multiple addressbooks for one user, but with iOS you can)



On Jul 1, 2012, at 3:26 PM, Matt Brock wrote:

With ownCloud I see in the log that adding contacts uses PUT rather than POST, so I suspect there's an issue in the way DAViCal initially negotiates with Address Book which causes Address Book to attempt a POST instead of a PUT. At the moment I don't really have the time or the need to investigate further, and if DAViCal is mainly catering to Android users then I'm guessing it wouldn't be worth the time spent doing so; but feel free to get back to me if you're keen to follow it up further and I'll see what I can do to help.

Cheers,

Matt.

On 30 Jun 2012, at 21:18, Ján Máté wrote:

Hi,

CardDav RFC - http://www.rfc-editor.org/rfc/rfc6352.txt says:

Creating Address Object Resources

  Clients populate address book collections with address object
  resources.  The URL for each address object resource is entirely
  arbitrary and does not need to bear a specific relationship (but
  might) to the address object resource's vCard properties or other
  metadata.  New address object resources MUST be created with a PUT
  request targeted at an unmapped URI.  A PUT request targeted at a
  mapped URI updates an existing address object resource.

But your log says, that the client tries to use POST request "Response status 500 for POST".

So if your configuration not contains exotic rewrite rules (or something similar) then report
this bug to Apple.

JM


On Jun 30, 2012, at 10:06 AM, Matt Brock wrote:

Hi.

I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:

[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
[Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.

I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?

My Mac is running OS X 10.7.4.

Cheers,

Matt.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Michael Rasmussen
On Sun, 1 Jul 2012 18:23:46 +0200
Ján Máté <[hidden email]> wrote:

> I just tested the latest Davical with Mac OS X 10.7.4 (build 11E53) and Address Book.app 6.1.2 (build 1090) with enabled request/response debugging. Here is the log:
>
> LOG: :***************** Request Header ****************
> LOG: :POST /caldav.php/company/customers/f635b598-da2e-437a-8eaa-ce7c7f06277f.vcf
This from my iPad 3 (IOS 5.1)
172.16.1.1 - mir [01/Jul/2012:19:43:11 +0200]
"PUT /caldav.php/mir/contacts/35483810-E569-49B4-86F2-8AC80A69A272.vcf
HTTP/1.1" 201 20 172.16.1.1 - mir [01/Jul/2012:19:43:12 +0200]
"REPORT /caldav.php/mir/contacts/ HTTP/1.1" 207 272 172.16.1.1 - mir
[01/Jul/2012:19:43:12 +0200] "REPORT /caldav.php/mir/contacts/
HTTP/1.1" 207 120

As can clearly be seen IOS uses the correct PUT method to add a new
contact.

QeD: OSX 10.7 is broken.

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Jens Langner
In reply to this post by Matt Brock
That's exactly what I mean. DAViCal might be technically more advanced
(since owncloud 'only' uses SabreDAV), but it suffers from several
points:

1. User experience: too cumbersome to install/setup. owncloud comes
with a nice and smooth setup also allowing to use different databases.
DAViCal limits you to postgres and needs so many manual steps and the
web interface is far from being optimal.
2. Too untested: There are several hundreds of Unit Tests in the code
and ist might be more RFC conform. However, as the OSX problem existed
now for months nobody really complained which leads to the conclusion
that not many people are using it with OSX.
3. Too small user community: owncloud has probably thousands of users
nowadays on different platforms while DAViCal probably is having only a
few hundreds. The same applied for developers.
4. Too hard to debug: Once in a while I tried myself to investigate the
problem and see if I could create a workaround. However, I failed right
at the beginning when I tried to debug DAViCal to understand its
workflow better.
5. Too strict: The recent replies to this mail thread and the comments
leads to the impression that RFC conformance seems plays a higher role
than actual usage of DAViCal. While I fully agree that the problem
should be reported to Apple and that Apple is to blame here, yet the
developer should provide a workaround in DAViCal (e.g. by checkin the
connected client version) which allows users to keep up with DAViCal and
not have to move over to another solution, which I just did.

And now even that I am with owncloud, I still feel that DAViCal is a
great product. It however requires some substantial changes and design
change considerations regarding user experience, priorities and
community. Otherwise I fear that in a few month/years it will vanish and
be widely replaced by such solutions like owncloud.

best regards,
jens

Am 01.07.2012 um 15:20 schrieb Matt Brock <[hidden email]>:

> Hi Jens.
>
> I hadn't heard of ownCloud before you suggested it. I just installed
> it on my server (pretty straightforward), and five minutes later I have
> my contacts and calendars all syncing perfectly between my Macs and my
> iPhone.
>
> Thank you very much for the suggestion - I'm very pleased to finally
> have a solution that works. :-)
>
> Take care,
>
> Matt.
>
> On 30 Jun 2012, at 13:58, Jens Langner wrote:
>
>> Hi Matt,
>>
>> I had the exact same problem with DAViCal and several OSX and iOS
>> client combinations. unfortunately I didn't find any solution nor
>> seemed the developer team motivated enough to analyze/fix the problem
>> (probably due to personal bindings to Android).
>>
>> The only solution I found so far was to switch to the recently
>> released owncloud4 release (owncloud.org) which works flawlessly so
>> far with any combination of any apple caldav/carddav client. Owncloud
>> really did a big leap compared to version 3 and I can only guess that
>> I will not be the only one switching to owncloud due to the problems
>> discussed.
>>
>> Best regards
>> Jens
>>
>> Am 30.06.2012 um 10:06 schrieb Matt Brock <[hidden email]>:
>>
>>> Hi.
>>>
>>> I'm experimenting with reducing/eliminating my dependence on iCloud
>>> by running things on my own Linux server to handle email, calendars
>>> and contacts sync. For the latter two items I've tried various things
>>> (Radicale, calendarserver) and DAViCal has come closest to being
>>> successful for me, and _almost_ seems to be running beautifully.
>>> Calendars and Reminders seem to work fine on both my Mac and my
>>> iPhone. Contacts work fine on my iPhone and nearly fine on my Mac,
>>> but when I create new contacts with Address Book on my Mac they won't
>>> update on the DAViCal server. Here is the error that occurs when I
>>> try to do this:
>>>
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> :Response status 500 for POST
>>> /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> :***************** Response Header ****************
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> headers:-->X-Powered-By: PHP/5.3.3
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> headers:-->Server: 1.1
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> headers:-->DAV: 1, 2, 3, access-control, calendar-access,
>>> calendar-schedule
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> headers:-->DAV: extended-mkcol, bind, addressbook,
>>> calendar-auto-schedule, calendar-proxy
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> headers:-->Content-type: text/plain; charset="utf-8"
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> :******************** Response ********************
>>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG:
>>> response:-->The application program does not understand that request.
>>>
>>> I've had a look round the documentation and mailing list archives
>>> but I can't see any solutions to this. If anyone has any insights I'd
>>> be very grateful as I'd love to get this working?
>>>
>>> My Mac is running OS X 10.7.4.
>>>
>>> Cheers,
>>>
>>> Matt.
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>> Discussions
>>> will include endpoint security, mobile security and the latest in
>>> malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Davical-general mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/davical-general
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Davical-general mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/davical-general
>
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Fabian Wenk
Hello Jens

On 02.07.2012 07:43, Jens Langner wrote:
> 2. Too untested: There are several hundreds of Unit Tests in the code
> and ist might be more RFC conform. However, as the OSX problem existed
> now for months nobody really complained which leads to the conclusion
> that not many people are using it with OSX.

I am using it on OS X, but I am still at 10.6.x and it is working
as it should. If I do remember other discussion here (or was it
on IRC?), it seems that the latest 10.7.x Update of OS X had
broken something, which was working just fine before. So this
seems to be a failure of Apple and not DAViCal, as all other
clients do not have any problems.

Regarding the difference of Owncloud and DAViCal. I installed
DAViCal only 2 1/2 months ago. When I was evaluating my
CalDAV/CardDAV backend, it seemed that many client applications
did not work out of the box with Owncloud. So for me DAViCal is
the better option, even if it also needs PostgreSQL (which I had
to learn as well, but it was worth it). The other thing about
Owncloud which I did not like, was the fact that it needs a cron
job running to sync data on a regular basis, which is from the
operational point of view not really a good design. But I do not
find such information any more. Could be that this has changed
with the new version of Owncloud. I also like it, that DAViCal
can get the user/password through IMAP, as it was easy to give
existing e-mail users on my mail hosting server access to
CalDAV/CardDAV. I could even integrate it into the existing
Roundcube web mail.


bye
Fabian

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Jens Langner
Hi Febian,

Fabian Wenk schrieb:

> On 02.07.2012 07:43, Jens Langner wrote:
>> 2. Too untested: There are several hundreds of Unit Tests in the code
>> and ist might be more RFC conform. However, as the OSX problem existed
>> now for months nobody really complained which leads to the conclusion
>> that not many people are using it with OSX.
>
> I am using it on OS X, but I am still at 10.6.x and it is working
> as it should. If I do remember other discussion here (or was it
> on IRC?), it seems that the latest 10.7.x Update of OS X had
> broken something, which was working just fine before. So this
> seems to be a failure of Apple and not DAViCal, as all other
> clients do not have any problems.

Of course this is a problem in iCal and Apple should fix it. However, if
there possibilities for a workaround in DAViCal this should be
considered IMHO. I would have done that on my own when I was still using
DAViCal, but I failed in trying to debug and understand DAViCals' code.

> Regarding the difference of Owncloud and DAViCal. I installed
> DAViCal only 2 1/2 months ago. When I was evaluating my
> CalDAV/CardDAV backend, it seemed that many client applications
> did not work out of the box with Owncloud. So for me DAViCal is
> the better option, even if it also needs PostgreSQL (which I had
> to learn as well, but it was worth it). The other thing about
> Owncloud which I did not like, was the fact that it needs a cron
> job running to sync data on a regular basis, which is from the
> operational point of view not really a good design. But I do not
> find such information any more. Could be that this has changed
> with the new version of Owncloud. I also like it, that DAViCal
> can get the user/password through IMAP, as it was easy to give
> existing e-mail users on my mail hosting server access to
> CalDAV/CardDAV. I could even integrate it into the existing
> Roundcube web mail.

With owncloud4 such a cron job is not necessary anymore and client
support has also greatly improved. Besides all kind of Apple clients
(OSX/iOS) I do also run Thunderbird/Lightning installations and they
work flawlessly as well. In addition, owncloud4 also comes with a
Unix-passwd and IMAP authentication backend as well and the roundcube
calendar plugin also works with owncloud quite well. Don't get me wrong,
I am not promoting anyone should switch to owncloud. Instead, I simply
want to bring the fact to the DAViCal developers attention that IMHO it
requires more attention on the user frontend side and better support for
different CardDAV/CalDAV clients even when they require some workarounds.

best regards,
jens
--
Jens Langner, Dresden/Germany
http://www.jens-langner.de/



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Michael Rasmussen
On Mon, 02 Jul 2012 13:13:34 +0200
Jens Langner <[hidden email]> wrote:

>
> Of course this is a problem in iCal and Apple should fix it. However, if
> there possibilities for a workaround in DAViCal this should be
> considered IMHO. I would have done that on my own when I was still using
> DAViCal, but I failed in trying to debug and understand DAViCals' code.
>
but why?

You cannot expect every application to implement work-arounds for every
bug introduced by OSX 10.7 when this bug is obvious, and therefore
hopefully temporarily. If you had bought a new door to your house which
was to big would you then blame the construction people for not foresee
this problem it advance and had made a dynamic door hole or afterwards
make the necessary arrangement for a door hole which would fit any
sized door?

Throw your dirt in front of the right doorstep and stop blaming people
doing a decent job!

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Jens Langner
Hi Michael,

Michael Rasmussen schrieb:

> On Mon, 02 Jul 2012 13:13:34 +0200
> Jens Langner <[hidden email]> wrote:
>
>> Of course this is a problem in iCal and Apple should fix it. However, if
>> there possibilities for a workaround in DAViCal this should be
>> considered IMHO. I would have done that on my own when I was still using
>> DAViCal, but I failed in trying to debug and understand DAViCals' code.
>>
> but why?
>
> You cannot expect every application to implement work-arounds for every
> bug introduced by OSX 10.7 when this bug is obvious, and therefore
> hopefully temporarily. If you had bought a new door to your house which
> was to big would you then blame the construction people for not foresee
> this problem it advance and had made a dynamic door hole or afterwards
> make the necessary arrangement for a door hole which would fit any
> sized door?
>
> Throw your dirt in front of the right doorstep and stop blaming people
> doing a decent job!

And you failed to read my last posting carefully enough. Of course I
blame Apple and it should be fixed by Apple, no doubts. However, DAViCal
as a product/software can simply not affort to loose any users and if
there are potentials for simple workarounds in DAViCal they should be
considered and not simply refused because Apple doesn't play by the
rules. BTW: 10.7 is now on the market for quite some time and 10.8 will
be release next month, so its not that 10.7 exists only for a few weeks.
The bug in iCal (and thus the incompatibility with DAViCal) is long
there. And sorry, we are not talking about house construction work here
but about a software product.

I do not vote for completely changing DAViCal as I also think
RFC-conformance is very important. However, what does it help if your
software is 100% RFC conformant but all widely used client software
doesn't play with it well? In the end you have to have a tradeoff
between RFC conformance and exceptions. Of course it would be different
if DAViCal would be the reference platform for CardDAV/CalDAV. But AFAIK
this is not the case. And IMHO this bug is a clear signs for trying to
add some exception handling into DAViCal so that it identifies e.g. the
iCal version and then react upon it (while of course still throwing a
warning message in the logs and also submitting the findings to the
broken software -> Apple).

best regards,
jens
--
Jens Langner, Dresden/Germany
http://www.jens-langner.de/



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Michael Rasmussen
On Mon, 02 Jul 2012 13:45:17 +0200
Jens Langner <[hidden email]> wrote:

>
> And you failed to read my last posting carefully enough. Of course I
> blame Apple and it should be fixed by Apple, no doubts. However, DAViCal
> as a product/software can simply not affort to loose any users and if
> there are potentials for simple workarounds in DAViCal they should be
> considered and not simply refused because Apple doesn't play by the
> rules. BTW: 10.7 is now on the market for quite some time and 10.8 will
> be release next month, so its not that 10.7 exists only for a few weeks.
> The bug in iCal (and thus the incompatibility with DAViCal) is long
> there. And sorry, we are not talking about house construction work here
> but about a software product.
>
> I do not vote for completely changing DAViCal as I also think
> RFC-conformance is very important. However, what does it help if your
> software is 100% RFC conformant but all widely used client software
> doesn't play with it well? In the end you have to have a tradeoff
> between RFC conformance and exceptions. Of course it would be different
> if DAViCal would be the reference platform for CardDAV/CalDAV. But AFAIK
> this is not the case. And IMHO this bug is a clear signs for trying to
> add some exception handling into DAViCal so that it identifies e.g. the
> iCal version and then react upon it (while of course still throwing a
> warning message in the logs and also submitting the findings to the
> broken software -> Apple).
>
You forget to address two important things:
1) Who says fixing this is easy?
2) Who says that not fixing this issue will not break other well
functioning clients?

Adding work-arounds to fix broken applications can introduce unforeseen
new problems.

BTW. the bug is only related to 10.7.4 so this is not a long standing
bug.

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Andrew McMillan
In reply to this post by Ján Máté-2
On Sun, 2012-07-01 at 18:23 +0200, Ján Máté wrote:
> I just tested the latest Davical with Mac OS X 10.7.4 (build 11E53)
> and Address Book.app 6.1.2 (build 1090) with enabled request/response
> debugging.

I believe what is happening here is the following:

* DAViCal advertises support for the 'POST add-member' extension.

* Some recent versions of iCal and Addressbook.app have also added
support for POST add-member, but they have ignored the URL supplied by
DAViCal as the destination URL for the POST request.

* DAViCal receives the POST request, but it does not look anything like
the POST request it is looking for, and the response is a 500 error.
Perhaps the response should more appropriately be a 405, but that is
probably academic.

If this is a problem for you, you could probably add a 'return false;'
into davical/inc/DAVResource.php somewhere around line 1641 (search for
'DAV::add-member').

I'd be interested in reports that indicated that works around the issue
for you (and patches that make it a configurable value, if it does).

Cheers,
                                        Andrew.

>  Here is the log:
>
> LOG: :***************** Request Header ****************
> LOG: :POST /caldav.php/company/customers/f635b598-da2e-437a-8eaa-ce7c7f06277f.vcf
> LOG: headers:-->Host: server.com:8443
> LOG: headers:-->User-Agent: AddressBook/6.1.2 (1090) CardDAVPlugin/200 CFNetwork/520.4.3 Mac_OS_X_Server/10.7.4
> LOG: headers:-->Content-Length: 177
> LOG: headers:-->Accept: */*
> LOG: headers:-->Accept-Language: en-us
> LOG: headers:-->Accept-Encoding: gzip, deflate
> LOG: headers:-->Content-Type: text/vcard; charset=utf-8
> LOG: headers:-->Authorization: Delicious tasty password eaten by debugging monster!
> LOG: headers:-->Connection: keep-alive
> LOG: :******************** Request ********************
> LOG: request:-->BEGIN:VCARD
> LOG: request:-->VERSION:3.0
> LOG: request:-->PRODID:-//Apple Inc.//Address Book 6.1.2//EN
> LOG: request:-->N:New;Contact;;;
> LOG: request:-->FN:New Contact
> LOG: request:-->REV:2012-07-01T15:42:52Z
> LOG: request:-->UID:f635b598-da2e-437a-8eaa-ce7c7f06277f
> LOG: request:-->END:VCARD
> LOG: request:-->
>
> LOG: :Response status 500 for POST /caldav.php/company/customers/f635b598-da2e-437a-8eaa-ce7c7f06277f.vcf
> LOG: :***************** Response Header ****************
> LOG: headers:-->Server: 1.1
> LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
> LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
> LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
> LOG: headers:-->Content-type: text/plain; charset="utf-8"
> LOG: :******************** Response ********************
> LOG: response:-->The application program does not understand that request.
>
>
> So the result is very simple: Apple = FAIL
>
> There is no any negotiation which can cause the client to use POST instead of PUT. PUT is defined in the RFC as the ONLY method for creating new contacts and if any client tries to use POST (for any reason) then the client not respects RFC. It looks like Apple client has a hidden bug which occurs only when it communicates with Davical server (but this is not Davical bug).
>
> Report this bug to Apple and wait for a fix.
>
> JM
>
> p.s.: it is interesting that Apple has 2 separate CardDav client implementations - the iOS implementation has no major problems but the Lion implementation simply not works (and this is not the only problem - for example in Lion you cannot use multiple addressbooks for one user, but with iOS you can)
>
>
>
> On Jul 1, 2012, at 3:26 PM, Matt Brock wrote:
>
> > With ownCloud I see in the log that adding contacts uses PUT rather than POST, so I suspect there's an issue in the way DAViCal initially negotiates with Address Book which causes Address Book to attempt a POST instead of a PUT. At the moment I don't really have the time or the need to investigate further, and if DAViCal is mainly catering to Android users then I'm guessing it wouldn't be worth the time spent doing so; but feel free to get back to me if you're keen to follow it up further and I'll see what I can do to help.
> >
> > Cheers,
> >
> > Matt.
> >
> > On 30 Jun 2012, at 21:18, Ján Máté wrote:
> >
> >> Hi,
> >>
> >> CardDav RFC - http://www.rfc-editor.org/rfc/rfc6352.txt says:
> >>
> >> Creating Address Object Resources
> >>
> >>   Clients populate address book collections with address object
> >>   resources.  The URL for each address object resource is entirely
> >>   arbitrary and does not need to bear a specific relationship (but
> >>   might) to the address object resource's vCard properties or other
> >>   metadata.  New address object resources MUST be created with a PUT
> >>   request targeted at an unmapped URI.  A PUT request targeted at a
> >>   mapped URI updates an existing address object resource.
> >>
> >> But your log says, that the client tries to use POST request "Response status 500 for POST".
> >>
> >> So if your configuration not contains exotic rewrite rules (or something similar) then report
> >> this bug to Apple.
> >>
> >> JM
> >>
> >>
> >> On Jun 30, 2012, at 10:06 AM, Matt Brock wrote:
> >>
> >>> Hi.
> >>>
> >>> I'm experimenting with reducing/eliminating my dependence on iCloud by running things on my own Linux server to handle email, calendars and contacts sync. For the latter two items I've tried various things (Radicale, calendarserver) and DAViCal has come closest to being successful for me, and _almost_ seems to be running beautifully. Calendars and Reminders seem to work fine on both my Mac and my iPhone. Contacts work fine on my iPhone and nearly fine on my Mac, but when I create new contacts with Address Book on my Mac they won't update on the DAViCal server. Here is the error that occurs when I try to do this:
> >>>
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :Response status 500 for POST /caldav.php/user/addresses/4b325a8d-7fa1-4d66-8352-c66c54d479e0.vcf
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :***************** Response Header ****************
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-Powered-By: PHP/5.3.3
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Server: 1.1
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.0; DB/1.2.11
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: headers:-->Content-type: text/plain; charset="utf-8"
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: :******************** Response ********************
> >>> [Sat Jun 30 09:02:00 2012] [error] [client 1.2.3.4] DAViCal: LOG: response:-->The application program does not understand that request.
> >>>
> >>> I've had a look round the documentation and mailing list archives but I can't see any solutions to this. If anyone has any insights I'd be very grateful as I'd love to get this working?
> >>>
> >>> My Mac is running OS X 10.7.4.
> >>>
> >>> Cheers,
> >>>
> >>> Matt.
> >>> ------------------------------------------------------------------------------
> >>> Live Security Virtual Conference
> >>> Exclusive live event will cover all the ways today's security and
> >>> threat landscape has changed and how IT managers can respond. Discussions
> >>> will include endpoint security, mobile security and the latest in malware
> >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >>> _______________________________________________
> >>> Davical-general mailing list
> >>> [hidden email]
> >>> https://lists.sourceforge.net/lists/listinfo/davical-general
> >>
> >
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________ Davical-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/davical-general
--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com                            +64(272)DEBIAN
          Facts are stubborn, but statistics are more pliable.
------------------------------------------------------------------------


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Martin Weil-2

Am 04.07.2012 um 12:48 schrieb Andrew McMillan:

> On Sun, 2012-07-01 at 18:23 +0200, Ján Máté wrote:
>> I just tested the latest Davical with Mac OS X 10.7.4 (build 11E53)
>> and Address Book.app 6.1.2 (build 1090) with enabled request/response
>> debugging.
>
> I believe what is happening here is the following:
>
> * DAViCal advertises support for the 'POST add-member' extension.
>
> * Some recent versions of iCal and Addressbook.app have also added
> support for POST add-member, but they have ignored the URL supplied by
> DAViCal as the destination URL for the POST request.
>
> * DAViCal receives the POST request, but it does not look anything like
> the POST request it is looking for, and the response is a 500 error.
> Perhaps the response should more appropriately be a 405, but that is
> probably academic.
>
> If this is a problem for you, you could probably add a 'return false;'
> into davical/inc/DAVResource.php somewhere around line 1641 (search for
> 'DAV::add-member').
>
> I'd be interested in reports that indicated that works around the issue
> for you (and patches that make it a configurable value, if it does).


This did indeed solve the problem for me.

Actually this error did not only prevent my OS X client from creating address book entries but also prevented any attempt to alter an entry. So basically it prevented any change at all (with this client).

I would be interested to work on a patch to make this configurable. Probably a config option like 'announce_POST_add-member' or something similar would be applicable. However I do not have any experience with coding in projects of this size. And thus with git or creating patches.

Anyway, if someone would be willing to give me some pointers on how to get started I would give it a try.

Martin
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Can't create contacts using Mac Address Book

Andrew McMillan
On Tue, 2012-07-10 at 23:22 +0200, Martin Weil wrote:

> Am 04.07.2012 um 12:48 schrieb Andrew McMillan:
>
> > On Sun, 2012-07-01 at 18:23 +0200, Ján Máté wrote:
> >> I just tested the latest Davical with Mac OS X 10.7.4 (build 11E53)
> >> and Address Book.app 6.1.2 (build 1090) with enabled request/response
> >> debugging.
> >
> > I believe what is happening here is the following:
> >
> > * DAViCal advertises support for the 'POST add-member' extension.
> >
> > * Some recent versions of iCal and Addressbook.app have also added
> > support for POST add-member, but they have ignored the URL supplied by
> > DAViCal as the destination URL for the POST request.
> >
> > * DAViCal receives the POST request, but it does not look anything like
> > the POST request it is looking for, and the response is a 500 error.
> > Perhaps the response should more appropriately be a 405, but that is
> > probably academic.
> >
> > If this is a problem for you, you could probably add a 'return false;'
> > into davical/inc/DAVResource.php somewhere around line 1641 (search for
> > 'DAV::add-member').
> >
> > I'd be interested in reports that indicated that works around the issue
> > for you (and patches that make it a configurable value, if it does).
>
>
> This did indeed solve the problem for me.
>
> Actually this error did not only prevent my OS X client from creating
> address book entries but also prevented any attempt to alter an entry.
> So basically it prevented any change at all (with this client).
>
> I would be interested to work on a patch to make this configurable.
> Probably a config option like 'announce_POST_add-member' or something
> similar would be applicable. However I do not have any experience with
> coding in projects of this size. And thus with git or creating
> patches.
>
> Anyway, if someone would be willing to give me some pointers on how to
> get started I would give it a try.
Hi Martin,

It'll be simple enough to add a line there that says:

  if ( isset($c->post_add_member) && $c->post_add_member === false ) return false;

and then you can just add:

  $c->post_add_member = false;

into your configuration file.

That's what I've put in as a workaround for the issue, so if you do it
that way it will continue to be disabled until Apple get it fixed on
their end.

I know that Apple had this problem with iCal back around the beginning
of the year, but I'm not sure if the Addressbook team has had a bug
report about it, so it might be worth chasing with them too.

Cheers,
                                        Andrew.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com                            +64(272)DEBIAN
                   PARDON me, am I speaking ENGLISH?
------------------------------------------------------------------------


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

signature.asc (853 bytes) Download Attachment