kickerchen / gdata-objectivec-client

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

GDataServiceBase broken because of updates in HTTP Fetcher #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Current GDataServiceBase contains calls to GTMHTTPUploadFetcher in the 
following form:

      fetcher = [uploadClass uploadFetcherWithRequest:request
                                           uploadData:uploadData
                                       uploadMIMEType:uploadMIMEType
                                            chunkSize:uploadChunkSize];

But the initializers in current GTMHTTPUploadFetcher have been refactored to:

+ (GTMHTTPUploadFetcher *)uploadFetcherWithRequest:(NSURLRequest *)request
                                        uploadData:(NSData *)data
                                    uploadMIMEType:(NSString *)uploadMIMEType
                                         chunkSize:(NSUInteger)chunkSize
                                    fetcherService:(GTMHTTPFetcherService *)fetcherServiceOrNil;

There is no compile-time error or warning, the code only blows at runtime with 
an exception:

+[GTMHTTPUploadFetcher 
uploadFetcherWithRequest:uploadData:uploadMIMEType:chunkSize:]: unrecognized 
selector sent to class 0x20fe3c

Original issue reported on code.google.com by tomas.znamenacek on 18 Oct 2011 at 3:18

GoogleCodeExporter commented 9 years ago
This is caused by revision #77 in the gtm-http-fetcher repository linked via 
Subversion externals.

Original comment by tomas.znamenacek on 18 Oct 2011 at 3:20

GoogleCodeExporter commented 9 years ago
The sources have now been updated. Thank you for pointing out the issue.

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

Original comment by grobb...@google.com on 18 Oct 2011 at 4:08