librelist archives

« back to archive

More iPhone problems

More iPhone problems

From:
Ron Garret
Date:
2012-03-19 @ 00:03
My iPhone calendar is not getting updates from the Radicale server.  I can
force it to update by going to 
Settings->Mail/Contacts/Calendars->Calendars-Sync (at the very bottom) and
changing the setting.  Every time I change it (no matter what I change it 
to), when I go back to Calendar, it picks up the latest changes, but not 
otherwise.  I have a Google Calendar account that is set up (as far as I 
can tell) identically, and it gets updated every time I start Calendar so 
the problem has to be somewhere in Radicale.  Is anyone else having this 
problem?  I'm running a fairly ancient version of iOS (3.1.3), but the 
fact that it's working with Google Calendar seems to indicate that the 
problem is not on the client side.

Thanks,
rg

Re: [radicale] More iPhone problems

From:
Guillaume Ayoub
Date:
2012-03-19 @ 10:15
Le dimanche 18 mars 2012 à 17:03 -0700, Ron Garret a écrit :
> My iPhone calendar is not getting updates from the Radicale server.  I
> can force it to update by going to
> Settings->Mail/Contacts/Calendars->Calendars-Sync (at the very bottom)
> and changing the setting.  Every time I change it (no matter what I
> change it to), when I go back to Calendar, it picks up the latest
> changes, but not otherwise.  I have a Google Calendar account that is
> set up (as far as I can tell) identically, and it gets updated every
> time I start Calendar so the problem has to be somewhere in Radicale. 
> Is anyone else having this problem?  I'm running a fairly ancient
> version of iOS (3.1.3), but the fact that it's working with Google
> Calendar seems to indicate that the problem is not on the client side.

We have only tested iCal 4 and 5, and I don't know how it works with
iCal 3. As it is written in the documentation, iCal 5 needs the "Sync
all entries" option to work correctly, it may be the same with iCal 3.

If you have any idea about how to make Radicale work with the other
settings (I think that it's because of the filters), please let us know!

Regards,
-- 
Guillaume

Re: [radicale] More iPhone problems

From:
Ron Garret
Date:
2012-03-20 @ 07:29
On Mar 19, 2012, at 3:15 AM, Guillaume Ayoub wrote:

> Le dimanche 18 mars 2012 à 17:03 -0700, Ron Garret a écrit :
>> My iPhone calendar is not getting updates from the Radicale server.  I
>> can force it to update by going to
>> Settings->Mail/Contacts/Calendars->Calendars-Sync (at the very bottom)
>> and changing the setting.  Every time I change it (no matter what I
>> change it to), when I go back to Calendar, it picks up the latest
>> changes, but not otherwise.  I have a Google Calendar account that is
>> set up (as far as I can tell) identically, and it gets updated every
>> time I start Calendar so the problem has to be somewhere in Radicale. 
>> Is anyone else having this problem?  I'm running a fairly ancient
>> version of iOS (3.1.3), but the fact that it's working with Google
>> Calendar seems to indicate that the problem is not on the client side.
> 
> We have only tested iCal 4 and 5, and I don't know how it works with
> iCal 3. As it is written in the documentation, iCal 5 needs the "Sync
> all entries" option to work correctly, it may be the same with iCal 3.
> 
> If you have any idea about how to make Radicale work with the other
> settings (I think that it's because of the filters), please let us know!

An update about this.  It turns out to be quite a vexing problem.

I figured if gCal is working and Radicale isn't it must be a Radicale 
problem.  So I set about trying to get a transcript of the iPhone's 
interaction with gCal and compare it to its interaction with Radicale to 
see where the difference was.  This turned out to be a non-trivial 
exercise.  I'll spare you the gory details, but the end result is that I 
now have two different gCal accounts with my (one) iPhone talking directly
to both of them.  One account exhibits the problem, the other one doesn't.
i.e. I can make a change to both calendars on my Mac or in a browser, quit
Calendar on my iPhone, start it up again, and one account will be updated 
and the other one won't be.  I can force an update of the second account 
by making a (any change) to the sync setting (i.e. 
Settings->Mail,Contacts,Calendars->Sync).  The next time I go into 
Calendar it will update both accounts, but then the second account won't 
be updated again until I make another change to the sync setting.  All 
this is 100% reproducible.

I have looked through the settings on both accounts and I can't find any 
salient difference between them.  It's one of the weirdest things I've 
ever seen, and I've seen some weird shit.

rg

Re: [radicale] More iPhone problems

From:
Guillaume Ayoub
Date:
2012-03-20 @ 11:43
Le mardi 20 mars 2012 à 00:29 -0700, Ron Garret a écrit :
> On Mar 19, 2012, at 3:15 AM, Guillaume Ayoub wrote:
> 
> > Le dimanche 18 mars 2012 à 17:03 -0700, Ron Garret a écrit :
> >> My iPhone calendar is not getting updates from the Radicale server.  I
> >> can force it to update by going to
> >> Settings->Mail/Contacts/Calendars->Calendars-Sync (at the very bottom)
> >> and changing the setting.  Every time I change it (no matter what I
> >> change it to), when I go back to Calendar, it picks up the latest
> >> changes, but not otherwise.  I have a Google Calendar account that is
> >> set up (as far as I can tell) identically, and it gets updated every
> >> time I start Calendar so the problem has to be somewhere in Radicale. 
> >> Is anyone else having this problem?  I'm running a fairly ancient
> >> version of iOS (3.1.3), but the fact that it's working with Google
> >> Calendar seems to indicate that the problem is not on the client side.
> > 
> > We have only tested iCal 4 and 5, and I don't know how it works with
> > iCal 3. As it is written in the documentation, iCal 5 needs the "Sync
> > all entries" option to work correctly, it may be the same with iCal 3.
> > 
> > If you have any idea about how to make Radicale work with the other
> > settings (I think that it's because of the filters), please let us know!
> 
> An update about this.  It turns out to be quite a vexing problem.
> 
> I figured if gCal is working and Radicale isn't it must be a Radicale
> problem.  So I set about trying to get a transcript of the iPhone's
> interaction with gCal and compare it to its interaction with Radicale
> to see where the difference was.  This turned out to be a non-trivial
> exercise.  I'll spare you the gory details, but the end result is that
> I now have two different gCal accounts with my (one) iPhone talking
> directly to both of them.  One account exhibits the problem, the other
> one doesn't.  i.e. I can make a change to both calendars on my Mac or
> in a browser, quit Calendar on my iPhone, start it up again, and one
> account will be updated and the other one won't be.  I can force an
> update of the second account by making a (any change) to the sync
> setting (i.e. Settings->Mail,Contacts,Calendars->Sync).  The next time
> I go into Calendar it will update both accounts, but then the second
> account won't be updated again until I make another change to the sync
> setting.  All this is 100% reproducible.
> 
> I have looked through the settings on both accounts and I can't find
> any salient difference between them.  It's one of the weirdest things
> I've ever seen, and I've seen some weird shit.

*Sigh*

Thank you for taking the time to debug this mess. And thank you for
sparing me the "gory details".

I've added an issue about the global problem of iCal sync:
http://redmine.kozea.fr/issues/783

You can add a comment to this bug report if you want to (or you're so
despaired that we can both imagine that your problem has never existed,
I'd understand). By the way, handling these time-range queries is not
that simple, even for gCal. You may have a corner case (repeating
events, only future or only past events, who knows?) in your second
calendar.

If I can help you about anything, just ask.

Thanks again,
-- 
Guillaume

Re: [radicale] More iPhone problems

From:
Ron Garret
Date:
2012-03-20 @ 18:57
On Mar 20, 2012, at 4:43 AM, Guillaume Ayoub wrote:

> Le mardi 20 mars 2012 à 00:29 -0700, Ron Garret a écrit :
>> On Mar 19, 2012, at 3:15 AM, Guillaume Ayoub wrote:
>> 
>>> Le dimanche 18 mars 2012 à 17:03 -0700, Ron Garret a écrit :
>>>> My iPhone calendar is not getting updates from the Radicale server.  I
>>>> can force it to update by going to
>>>> Settings->Mail/Contacts/Calendars->Calendars-Sync (at the very bottom)
>>>> and changing the setting.  Every time I change it (no matter what I
>>>> change it to), when I go back to Calendar, it picks up the latest
>>>> changes, but not otherwise.  I have a Google Calendar account that is
>>>> set up (as far as I can tell) identically, and it gets updated every
>>>> time I start Calendar so the problem has to be somewhere in Radicale. 
>>>> Is anyone else having this problem?  I'm running a fairly ancient
>>>> version of iOS (3.1.3), but the fact that it's working with Google
>>>> Calendar seems to indicate that the problem is not on the client side.
>>> 
>>> We have only tested iCal 4 and 5, and I don't know how it works with
>>> iCal 3. As it is written in the documentation, iCal 5 needs the "Sync
>>> all entries" option to work correctly, it may be the same with iCal 3.
>>> 
>>> If you have any idea about how to make Radicale work with the other
>>> settings (I think that it's because of the filters), please let us know!
>> 
>> An update about this.  It turns out to be quite a vexing problem.
>> 
>> I figured if gCal is working and Radicale isn't it must be a Radicale
>> problem.  So I set about trying to get a transcript of the iPhone's
>> interaction with gCal and compare it to its interaction with Radicale
>> to see where the difference was.  This turned out to be a non-trivial
>> exercise.  I'll spare you the gory details, but the end result is that
>> I now have two different gCal accounts with my (one) iPhone talking
>> directly to both of them.  One account exhibits the problem, the other
>> one doesn't.  i.e. I can make a change to both calendars on my Mac or
>> in a browser, quit Calendar on my iPhone, start it up again, and one
>> account will be updated and the other one won't be.  I can force an
>> update of the second account by making a (any change) to the sync
>> setting (i.e. Settings->Mail,Contacts,Calendars->Sync).  The next time
>> I go into Calendar it will update both accounts, but then the second
>> account won't be updated again until I make another change to the sync
>> setting.  All this is 100% reproducible.
>> 
>> I have looked through the settings on both accounts and I can't find
>> any salient difference between them.  It's one of the weirdest things
>> I've ever seen, and I've seen some weird shit.
> 
> *Sigh*
> 
> Thank you for taking the time to debug this mess. And thank you for
> sparing me the "gory details".
> 
> I've added an issue about the global problem of iCal sync:
> http://redmine.kozea.fr/issues/783
> 
> You can add a comment to this bug report if you want to (or you're so
> despaired that we can both imagine that your problem has never existed,
> I'd understand).

Actually, I have become obsessed with this.  I am determined to figure out
what is going on.

> By the way, handling these time-range queries is not
> that simple, even for gCal. You may have a corner case (repeating
> events, only future or only past events, who knows?) in your second
> calendar.

It's the simple one that isn't working.  The one that is working is my 
real calendar, which is chock-full of events.  Also, the fact that I can 
force it to update by changing the sync setting proves it's not a static 
problem with the query.

BTW, I have all this running through an SSL proxy (part of the long story)
so I can produce transcripts of exactly what is going on between the 
client and server.  Preliminary indications are that when it's working, 
the iPhone does two PROPFIND queries followed by a REPORT query.  When 
it's not working, the iPhone does the same two PROPFINDs but then does not
follow up with the REPORT.

> If I can help you about anything, just ask.

If you have an iPhone, it would be very helpful to me to know if anyone 
can reproduce this problem.  I have set up a throwaway Google account that
you can use for testing.  User name is radicale7@gmail.com and password is
radicale.

rg

Bug report

From:
Ron Garret
Date:
2012-03-20 @ 22:20
DELETE request at ...
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/ron/Radicale/radicale/__init__.py", line 202, in __call__
    status, headers, answer = function(environ, items, content, None)
  File "/home/ron/Radicale/radicale/__init__.py", line 289, in delete
    etag = environ.get("HTTP_IF_MATCH", item.etag).replace("\\", "")
AttributeError: 'NoneType' object has no attribute 'etag'

Looks like a simple problem to fix.

rg

Re: [radicale] Bug report

From:
Guillaume Ayoub
Date:
2012-03-21 @ 10:30
Le mardi 20 mars 2012 à 15:20 -0700, Ron Garret a écrit :
> DELETE request at ...
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/wsgiref/handlers.py", line 85, in run
>     self.result = application(self.environ, self.start_response)
>   File "/home/ron/Radicale/radicale/__init__.py", line 202, in __call__
>     status, headers, answer = function(environ, items, content, None)
>   File "/home/ron/Radicale/radicale/__init__.py", line 289, in delete
>     etag = environ.get("HTTP_IF_MATCH", item.etag).replace("\\", "")
> AttributeError: 'NoneType' object has no attribute 'etag'
> 
> Looks like a simple problem to fix.

It was ;).
-- 
Guillaume

Re: [radicale] More iPhone problems

From:
Ron Garret
Date:
2012-03-20 @ 22:14
I think I've figured it out.  It appears that if you have more than one 
CalDAV account in iPhone Calendar (at least the old version I'm using), 
only the first one gets updated.

Not sure whether to go "grrrr...." or "whew!"

On Mar 20, 2012, at 11:57 AM, Ron Garret wrote:

> 
> On Mar 20, 2012, at 4:43 AM, Guillaume Ayoub wrote:
> 
>> Le mardi 20 mars 2012 à 00:29 -0700, Ron Garret a écrit :
>>> On Mar 19, 2012, at 3:15 AM, Guillaume Ayoub wrote:
>>> 
>>>> Le dimanche 18 mars 2012 à 17:03 -0700, Ron Garret a écrit :
>>>>> My iPhone calendar is not getting updates from the Radicale server.  I
>>>>> can force it to update by going to
>>>>> Settings->Mail/Contacts/Calendars->Calendars-Sync (at the very bottom)
>>>>> and changing the setting.  Every time I change it (no matter what I
>>>>> change it to), when I go back to Calendar, it picks up the latest
>>>>> changes, but not otherwise.  I have a Google Calendar account that is
>>>>> set up (as far as I can tell) identically, and it gets updated every
>>>>> time I start Calendar so the problem has to be somewhere in Radicale. 
>>>>> Is anyone else having this problem?  I'm running a fairly ancient
>>>>> version of iOS (3.1.3), but the fact that it's working with Google
>>>>> Calendar seems to indicate that the problem is not on the client side.
>>>> 
>>>> We have only tested iCal 4 and 5, and I don't know how it works with
>>>> iCal 3. As it is written in the documentation, iCal 5 needs the "Sync
>>>> all entries" option to work correctly, it may be the same with iCal 3.
>>>> 
>>>> If you have any idea about how to make Radicale work with the other
>>>> settings (I think that it's because of the filters), please let us know!
>>> 
>>> An update about this.  It turns out to be quite a vexing problem.
>>> 
>>> I figured if gCal is working and Radicale isn't it must be a Radicale
>>> problem.  So I set about trying to get a transcript of the iPhone's
>>> interaction with gCal and compare it to its interaction with Radicale
>>> to see where the difference was.  This turned out to be a non-trivial
>>> exercise.  I'll spare you the gory details, but the end result is that
>>> I now have two different gCal accounts with my (one) iPhone talking
>>> directly to both of them.  One account exhibits the problem, the other
>>> one doesn't.  i.e. I can make a change to both calendars on my Mac or
>>> in a browser, quit Calendar on my iPhone, start it up again, and one
>>> account will be updated and the other one won't be.  I can force an
>>> update of the second account by making a (any change) to the sync
>>> setting (i.e. Settings->Mail,Contacts,Calendars->Sync).  The next time
>>> I go into Calendar it will update both accounts, but then the second
>>> account won't be updated again until I make another change to the sync
>>> setting.  All this is 100% reproducible.
>>> 
>>> I have looked through the settings on both accounts and I can't find
>>> any salient difference between them.  It's one of the weirdest things
>>> I've ever seen, and I've seen some weird shit.
>> 
>> *Sigh*
>> 
>> Thank you for taking the time to debug this mess. And thank you for
>> sparing me the "gory details".
>> 
>> I've added an issue about the global problem of iCal sync:
>> http://redmine.kozea.fr/issues/783
>> 
>> You can add a comment to this bug report if you want to (or you're so
>> despaired that we can both imagine that your problem has never existed,
>> I'd understand).
> 
> Actually, I have become obsessed with this.  I am determined to figure 
out what is going on.
> 
>> By the way, handling these time-range queries is not
>> that simple, even for gCal. You may have a corner case (repeating
>> events, only future or only past events, who knows?) in your second
>> calendar.
> 
> It's the simple one that isn't working.  The one that is working is my 
real calendar, which is chock-full of events.  Also, the fact that I can 
force it to update by changing the sync setting proves it's not a static 
problem with the query.
> 
> BTW, I have all this running through an SSL proxy (part of the long 
story) so I can produce transcripts of exactly what is going on between 
the client and server.  Preliminary indications are that when it's 
working, the iPhone does two PROPFIND queries followed by a REPORT query.
When it's not working, the iPhone does the same two PROPFINDs but then 
does not follow up with the REPORT.
> 
>> If I can help you about anything, just ask.
> 
> If you have an iPhone, it would be very helpful to me to know if anyone 
can reproduce this problem.  I have set up a throwaway Google account that
you can use for testing.  User name is radicale7@gmail.com and password is
radicale.
> 
> rg
> 

Re: [radicale] More iPhone problems

From:
Guillaume Ayoub
Date:
2012-03-21 @ 11:22
Le mardi 20 mars 2012 à 15:14 -0700, Ron Garret a écrit :
> I think I've figured it out.  It appears that if you have more than one
> CalDAV account in iPhone Calendar (at least the old version I'm using),
> only the first one gets updated.
> 
> Not sure whether to go "grrrr...." or "whew!"

Yesterday, I was about to write "Here's the difference between your
calendars: the first one is the first one, the second one is the second
one". I was damn right.

Let's say "whew!" and assume that it's not a bug but a feature of your
iPhone.

Thanks a lot,
-- 
Guillaume