No, it does not happen on 100% of my delete requests. I've only been
able to reproduce it twice. I am using 1.6.0 of the client. I checked
and I am not using setShouldUseMethodOverrideHeader at all.

On Feb 25, 2:44 pm, Trevor Johns <[email protected]> wrote:
> On Tue, Feb 24, 2009 at 3:23 PM, AK <[email protected]> wrote:
>
> > Well a client found it, so I don't have *too* much info, but I can see
> > it happened during a delete. For deletes what we do is we get the
> > original event and then we delete it. Here is my code and here is the
> > result:
>
> > IPSCGoogleSyncTask.m:938 Entity delete is failed with error : Error
> > Domain=com.google.GDataServiceDomain Code=501 UserInfo=0x4315070
> > "Operation could not be completed. (If-Modified-Since HTTP
> > precondition not supported on POST)"
> > {
> >    NSLocalizedFailureReason = "(If-Modified-Since HTTP precondition
> > not supported on POST)";
> >    error = "If-Modified-Since HTTP precondition not supported on
> > POST";
> > }
>
> > - (void)retrieveDeletedCompleteEntryForEntry:(NSString *)selfLink
> > {
> >        _updatingTasksCount++;
>
> >        // fetch a complete copy of the entry, including unknown XML, by
> > using the self link
> >        GDataServiceTicket *ticket = [[self calendarService]
> > fetchCalendarEventEntryWithURL:[NSURL URLWithString:selfLink]
> >                                                                             
> >                                                                             
> >   delegate:self
> >                                                                             
> >                                                              
> > didFinishSelector:@selector
> > (fetchDeletedEntryTicket:finishedWithEntry:)
> >                                                                             
> >                                                                    
> > didFailSelector:@selector
> > (fetchEntryTicket:failedWithError:)];
>
> >        [_tickets addObject:ticket];
> > }
>
> > - (void)fetchDeletedEntryTicket:(GDataServiceTicket *)ticket
> > finishedWithEntry:(GDataEntryCalendarEvent *)completeEntry
> > {
> >        [_tickets removeObject:ticket];
>
> >        [[self calendarService] deleteCalendarEventEntry: completeEntry
> > delegate:self
> >                                                                   
> > didFinishSelector:@selector(deleteTicket:deletedEntry:)
> >                                                                         
> > didFailSelector:@selector(deleteTicket:failedWithError:)];
> > }
>
> So, in that case, can I assume this does not happen on 100% of your
> delete requests then?
>
> The only reason I can think of a POST being used on a DELETE is if
> [service setShouldUseMethodOverrideHeader:YES] is set. But I just
> tested that on a recent build of the Objective-C client and didn't
> have any problems.
>
> Can you make sure that you're using the latest version of the client
> library, and let me know if this problem continues?
>
> Thanks.
>
> --
> Trevor Johns

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to