Thanks Eric, glad it could be reproduced. Adam
On Aug 5, 1:08 pm, Eric Bidelman <api.e...@google.com> wrote: > Thanks for clarifying. I was only updating the metadata. This does look > like a bug:http://code.google.com/p/gdata-issues/issues/detail?id=1374 > > <http://code.google.com/p/gdata-issues/issues/detail?id=1374>Please star > that issue. > > Thanks! > Eric > > > > On Tue, Aug 4, 2009 at 10:05 PM, Kabuki Adam <a...@kabukivision.com> wrote: > > > Hi Eric, thanks for the response. > > > I played with it a bit more and I found that problem only occurs when > > I update the content of the document. If I just update the metadata > > (like the document name) then everything works (the name gets changed, > > and the document remains in the folder). > > > When you did your test, were you updating the doc content, or just the > > metadata? > > > I'm still looking into trying it with the minimalistic atom entry as > > you suggested...since I'm using one of the client libraries (Obj-C) I > > don't think I have much direct control over the contents of the atom > > entry that gets sent, but I'll try to hack something together as a > > test. > > > Thanks. > > > Adam > > > On Aug 3, 11:38 am, Eric Bidelman <api.e...@google.com> wrote: > > > Hey, > > > I was able update a doc in a folder without problems. > > > It may have something to do with your full Atom entry. Try only > > > using a minimalistic entry as described here: > >http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... > > > ... > > > GData-Version: 2.0 > > > If-Match: * > > > ... > > > PUThttp://docs.google.com/feeds/documents/private/full/document%3A123456 > > > <?xml version='1.0' encoding='UTF-8'?> <atom:entry xmlns:atom=" > >http://www.w3.org/2005/Atom"> <atom:category scheme=" > >http://schemas.google.com/g/2005#kind" term=" > >http://schemas.google.com/docs/2007#document"/> <atom:title>new > > > title</atom:title> </atom:entry> > > > > <http://code.google.com/apis/documents/docs/2.0/developers_guide_proto.. > > .> > > > Eric > > > > On Sun, Aug 2, 2009 at 11:56 AM, Kabuki Adam <a...@kabukivision.com> > > wrote: > > > > > Hi, I've had some code that has been working for a few months now, > > > > that has suddenly changed behavior. When I update the content of an > > > > existing document, the update is successful, but the document gets > > > > removed from the folder it resides in. > > > > > The strange thing is that this only occurs when I have created the > > > > document inside the Google Docs web site interface. It does not occur > > > > if I create the document via the Google Docs API. > > > > > Here's how I can reproduce it every time: > > > > 1) Create a new document in the Google Docs web site. > > > > 2) Move the new document into a folder (via the web site interface). > > > > 3) Via the API, get the feed for that folder. > > > > 4) Via the API, issue a PUT against the document's edit link. > > > > 5) API returns success (200) and the "self" link in the returned feed > > > > has not changed. > > > > 6) Browsing the web site, the document is no longer is in the folder. > > > > It is still visible via the items "Owned by me", and it has been > > > > successfully updated. > > > > > Like I said above, this seems to only occur if I create the document > > > > within the Google Docs web interface. If I replace steps 1 and 2 with > > > > "Via the API, POST new document to the folder's feed", then the > > > > problem does not occur. > > > > > And again, this was all working fine until about a week ago. I am > > > > using the Objective-C client library. > > > > > Is this a known issue? Did something recently change? Am I doing > > > > something wrong? > > > > > Adam Shaw > > > --------------------------------------------------------------------------- > > -------- > > > > If it helps, here is the posted data and response: > > > > > POSTED DATA: > > > > <entry xmlns:gd="http://schemas.google.com/g/2005" xmlns:app="http:// > > > > purl.org/atom/app#" xmlns="http://www.w3.org/2005/ > > > > Atom"><published>2009-08-02T18:22:21.405Z</published><content > > > > src="http://docs.google.com/feeds/download/documents/Export? > > > > docId=0AZMkL43O9OHRZHFxczM3d18zMzdjN3p3YmgzYw" type="text/html"/ > > > > ><author><name>adamshaw</name><email>adams...@cox.net</email></ > > > > author><id>http://docs.google.com/feeds/folders/private/full/folder > > > > %3Ab593eca4-1d62-4629-8e7a-d036c3ade131/document > > > > %3Adqqs37w_337c7zwbh3c</id><title>Remote Test</title><category > > > > term="http://schemas.google.com/docs/2007#document" label="document" > > > > scheme="http://schemas.google.com/g/2005#kind"/><category > > term="http:// > > > > schemas.google.com/g/2005/labels#viewed" label="viewed" > > scheme="http:// > > > > schemas.google.com/g/2005/labels"/><category term="Sync Test2" > > > > label="Sync Test2" scheme=" > >http://schemas.google.com/docs/2007/folders/ > > > > adams...@cox.net"/><gd:feedLink rel="http://schemas.google.com/acl/ > > > > 2007#accessControlList" href=" > >http://docs.google.com/feeds/acl/private/ > > > > full/document%3Adqqs37w_337c7zwbh3c"/><link title="Sync Test2" > > > > type="application/atom+xml" rel="http://schemas.google.com/docs/ > > > > 2007#parent" href=" > >http://docs.google.com/feeds/documents/private/full/ > > > > folder%3Ab593eca4-1d62-4629-8e7a-d036c3ade131"/><link rel="alternate" > > > > href="http://docs.google.com/Doc? > > > > docid=0AZMkL43O9OHRZHFxczM3d18zMzdjN3p3YmgzYw&hl=en" type="text/html"/ > > > > ><link rel="self" href="http://docs.google.com/feeds/folders/private/ > > > > full/folder%3Ab593eca4-1d62-4629-8e7a-d036c3ade131/document > > > > %3Adqqs37w_337c7zwbh3c" type="application/atom+xml"/><link rel="edit" > > > > href="http://docs.google.com/feeds/folders/private/full/folder > > > > %3Ab593eca4-1d62-4629-8e7a-d036c3ade131/document%3Adqqs37w_337c7zwbh3c/ > > > > fxw3x8lv" type="application/atom+xml"/ > > > > ><updated>2009-08-02T18:29:45.731Z</ > > > > updated><gd:resourceId>document:dqqs37w_337c7zwbh3c</ > > > > gd:resourceId><gd:lastModifiedBy><name>adamshaw</ > > > > name><email>adams...@cox.net</email></ > > > > gd:lastModifiedBy><gd:lastViewed>2009-08-02T18:22:23.489Z</ > > > > gd:lastViewed><gd:quotaBytesUsed>0</ > > > > gd:quotaBytesUsed><docs:writersCanInvite xmlns:docs="http:// > > > > schemas.google.com/docs/2007" value="true"/></entry> > > > > > RESPONSE: > > > > <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/ > > > > 2005/Atom' xmlns:docs='http://schemas.google.com/docs/2007' > > > > xmlns:batch='http://schemas.google.com/gdata/batch'xmlns:gd='http:// > > > > schemas.google.com/g/2005'><id>http://docs.google.com/feeds/folders/ > > > > private/full/folder%3Ab593eca4-1d62-4629-8e7a-d036c3ade131/document > > > > %3Adqqs37w_337c7zwbh3c</id><published>2009-08-02T18:22:21.405Z</ > > > > published><updated>2009-08-02T18:30:28.024Z</updated><category > > > > scheme='http://schemas.google.com/g/2005#kind'term='http:// > > > > schemas.google.com/docs/2007#document' label='document'/><category > > > > scheme='http://schemas.google.com/g/2005/labels'term='http:// > > > > schemas.google.com/g/2005/labels#viewed' label='viewed'/><title > > > > type='text'>Remote Test</title><content type='text/html' src='http:// > > > > docs.google.com/feeds/download/documents/Export? > > > > docId=0AZMkL43O9OHRZHFxczM3d18zMzdjN3p3YmgzYw'/><link rel='alternate' > > > > type='text/html' href='http://docs.google.com/Doc? > > > > docid=0AZMkL43O9OHRZHFxczM3d18zMzdjN3p3YmgzYw&hl=en'/><link > > > > rel='self' type='application/atom+xml' href='http://docs.google.com/ > > > > feeds/folders/private/full/folder%3Ab593eca4-1d62-4629-8e7a- > > > > d036c3ade131/document%3Adqqs37w_337c7zwbh3c'/><link rel='edit' > > > > type='application/atom+xml' href=' > >http://docs.google.com/feeds/folders/ > > > > private/full/folder%3Ab593eca4-1d62-4629-8e7a-d036c3ade131/document > > > > %3Adqqs37w_337c7zwbh3c/fxw3y5qy'/><author><name>adamshaw</ > > > > name><email>adams...@cox.net</email></ > > > > author><gd:resourceId>document:dqqs37w_337c7zwbh3c</ > > > > gd:resourceId><gd:lastModifiedBy><name>adamshaw</ > > > > name><email>adams...@cox.net</email></ > > > > gd:lastModifiedBy><gd:lastViewed>2009-08-02T18:22:23.489Z</ > > > > gd:lastViewed><gd:quotaBytesUsed>0</ > > > > gd:quotaBytesUsed><docs:writersCanInvite value='true'/><gd:feedLink > > > > rel='http://schemas.google.com/acl/2007#accessControlList' > > > > href='http://docs.google.com/feeds/acl/private/full/document > > > > %3Adqqs37w_337c7zwbh3c'/></entry> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---