Hi All,
This may be the wrong group to ask but I suspect I have a client
library issue (as opposed to a google doc gdata api issue)
I'm playing with a new project and one of the things I'm doing with
the oh-so-excellent Objective-c client library is getting a list of
documents, uploading some new ones, deleting some and modifying some
(the modification consists currently of just changing the 'title'
string which is what google docs shows as the document name)
So everything is working great -- I can download list of docs, upload
new docs, delete docs -- Everything is great but I can't for the life
of me modify a doc entry.
Here is a snippit of code (slightly modified and condensed)..
[gdataEntry setTitle:@"Some fancy new title"];
NSString *modifyURL=[[[gdataEntry valueForKey:@"links"]
editLink]URL];
GDataServiceTicket *ticket;
ticket = [service fetchDocEntryByUpdatingEntry:gdataEntry
forEntryURL:modifyURL
delegate:self
didFinishSelector:@selector(modifyFileTicket:finishedWithEntry:)
didFailSelector:@selector(modifyFileTicket:failedWithError:)];
Turning on logging shows (with a few X's to protect the innocent)
PUT URL:
http://docs.google.com/feeds/documents/private/full/document%3Aah4jzqpkXXX_70c28hs4hh/fdba8XXX
With a header of
Accept = "application/atom+xml, text/xml";
Authorization = "GoogleLogin
auth=DQAAAHXXXXXXXXXXXXXXXXXXXEGCT0WqS-
QH0wQBMucb8z5IK7JatmmZL8tANL_vMhLflC1P7JkC_HfTRYrYkXXXXXXXXXXa207NsNBqrAEqghnprJxs1GH56ptR5jJetijozhD7oHMUafZ1Qud7aYUXXXXXXXXXXXXXXaMTfHWNqEw";
"Cache-Control" = "no-cache";
"Content-Length" = 1133;
"Content-Type" = "application/atom+xml;charset=utf-8";
"User-Agent" = "XXXXXXXX-XXXX-1.0 GData-ObjectiveC/1.3 MacOSX/
10.5.2 (gzip)";
This code is boiler plat from my upload & delete (which work fine) but
this fails consistently with a '404' (not found). This same URI
deletes just fine so I'm pretty sure I've got authentication working
and the URI is correct.
I'm sort of stumped on how to proceed....... Anyone see anything
obviously wrong?
Thanks.
-John