tianshanxuester / gdata-objectivec-client

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

Unable to fetchDocEntryByUpdatingEntry a text/plain document #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update an existing text/plain document with a new text/plain document
2.

What is the expected output? What do you see instead?
I would expect to get a call back to my finishedWithEntry.

What version of the product are you using? On what operating system?
Version 1.6 & 1.7 of the gdata-objectivec-client apis.

Please provide any additional information below.

The following code...

        if ([uploadData length]) 
        {
            [aEntry setUploadData:uploadData];
            [aEntry setUploadMIMEType:@"text/plain"];
            [aEntry setUploadSlug:aFileName];

            NSURL   *modifyURL = [[aEntry editLink] URL];
            [myLog writeLogEntry:[NSString stringWithFormat:@"Update Entry URL = %@", 
[modifyURL absoluteString]] error:false];

            // insert the entry into the docList feed
            GDataServiceTicket *ticket;

            ticket = [mService fetchDocEntryByUpdatingEntry:aEntry
                                                 forEntryURL:modifyURL
                                                   delegate:self

didFinishSelector:@selector(uploadFileTicket:finishedWithEntry:)

didFailSelector:@selector(uploadFileTicket:failedWithError:)];

            aResult = true;
            [self setMBusy:true];       
            [self setUploadTicket:ticket];
        }

gets a call to the uploadFileTicket:failedWithError, which for me logs the 
following information:

2009-04-15 11:54:27=uploadFileTicket:GDataServiceTicket 0x138E9440: 
{service:<GDataServiceGoogleDocs: 0x13909ac0> objectFetcher:<GDataHTTPFetcher: 
0x39be80> authFetcher:(null) userData:(null)} failedWithError:Error 
Domain=com.google.GDataServiceDomain Code=400 UserInfo=0x139d3af0 "Operation 
could 
not be completed. (The prefix &quot;docs&quot; for element 
&quot;docs:writersCanInvite&quot; 
is not bound.)"

Original issue reported on code.google.com by neoq...@gmail.com on 15 Apr 2009 at 7:04

GoogleCodeExporter commented 9 years ago
This was already fixed on the top of trunk sources.

http://groups.google.com/group/gdata-objectivec-client/browse_thread/thread/cb8c
b1b8ddc94560

Original comment by gregrobbins on 15 Apr 2009 at 7:56

GoogleCodeExporter commented 9 years ago
Very glad to see it's fixed and checked in, but the 'invalid' status to the 
issue is 
incorrect as it is an issue in the 1.7 (current) version of the library 
download.

Original comment by goodmans...@gmail.com on 15 Apr 2009 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by gregrobbins on 15 Apr 2009 at 8:46