jmichael218 / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

GDataServiceBase waitForTicket:timeout:fetchedObject:error: has some problem #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. call |deleteEntry:completionHandler| to get GDataServiceTicket into ticket
2. send ticket, longtime(30s) into GDataServiceBase 
|waitForTicket:timeout:fetchedObject:error:|

What is the expected output? What do you see instead?

The result of |waitForTicket:timeout:fetchedObject:error:| is NO, and |[ticket 
statusCode]| got "200"
.
It should return YES  on this case.

What version of the product are you using? On what operating system?

I am using the latest revision of the gdata-objectivec-client, r713

OS Mac OSX 10.7.2 XCode 4.2.1

Please provide any additional information below.

My project is synchronous. While I call |deleteEntry|, the result is wrong. It 
should return YES, because that wasn't timeout case.

I try to fix it on GDataServiceBase.m on 
|waitForTicket:timeout:fetchedObject:error:|

Add some code before lastest return value.

  if ([ticket hasCalledCallback] && ([ticket fetchError] == nil) && (fetchedObject == nil)) {
    return YES;
  }

That will fix this problem.

Original issue reported on code.google.com by superbil on 22 Dec 2011 at 1:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by grobb...@google.com on 23 Dec 2011 at 12:38

GoogleCodeExporter commented 9 years ago
Fixed in the top-of-trunk sources.

Thank you for pointing out the issue.

http://code.google.com/p/gdata-objectivec-client/source/detail?r=714

Original comment by grobb...@google.com on 23 Dec 2011 at 1:26