I'll need to try it without the batch feed and let you know... I'm gonna have to dig that code up again ;)
The user DOES NOT show up. When I insert a user, I don't even check the response code anymore. I just wait 2 seconds (it seems like I need to give the Google Docs Server some breathing time), then I query the ACL list, and check if the email I just tried to enter was in there. So if the user did not get added, I just try again later and hope for the best (and repeat that process until they're added). That algorithm seems to work, though it's not a programmers dream... haha I'll get back with ya on the single feed On Jun 23, 10:45 am, Eric Bidelman <api.e...@google.com> wrote: > Hi all, > Please report bugs if you think they are. I triage the issue tracker > on a regular basis. It's also helpful to post in the forum (as you've done > :)) > so others can follow any issues. > > Sometimes there are small delays between doing something in the API and > when it actually shows up in a re-query or the Docs UI. Just so I'm clear, > these ACLs never show up, correct? > > Daniel, do you see the same happening when NOT using a batch feed? > Inserting a entry and inserting a single entry inside of a batch feed > go through different pipelines. > > Also, does the user show up when re-querying the doc's ACL feed? > > Eric > > On Tue, Jun 23, 2009 at 8:01 AM, Patricia Goldweic < > > pgoldw...@northwestern.edu> wrote: > > > I've also noticed problems with using the apis to modify/add acl entries. > > In > > my case, some entries get added, but then, they DO NOT display on the GUI > > (as if the document was not being shared with those people, even though the > > acl entries are actually there, and sharing actually works). This only > > happens once in a while (not every time). We should probably start > > reporting > > these issues as bugs, right? > > -Patricia > > > > -----Original Message----- > > > From: Google-Docs-Data-APIs@googlegroups.com > > > [mailto:google-docs-data-a...@googlegroups.com] On Behalf Of > > > Daniel Marashlian > > > Sent: Tuesday, June 23, 2009 12:15 AM > > > To: Google Docs Data APIs > > > Subject: [Google-Docs-Data-APIs] The response from modifying > > > the ACL is returning false-positives > > > > Hi Eric, > > > > I've been doing some final testing on the Pelotonics > > > integration, and I've noticed the Google Docs API is > > > returning false-positives on modifying the ACL. > > > > I added a document, then tried to insert 5 collaborators on > > > that document. I only have 1 transaction in each call (I went > > > away from batch processing). The API returns a result of what > > > happened. In this case, 4/5 collaborators got added to the > > > document, which would be fine if the API actually told me > > > that one of them failed. > > > > Here is a response on a successful call: > > > > -------------------------------------------------- > > > > <?xml version='1.0' encoding='UTF-8'?><atom:feed > > > xmlns:atom='http://www.w3.org/2005/Atom' > > > xmlns:openSearch='http://a9.com/-/spec/ > > > opensearchrss/1.0/' xmlns:gAcl='http://schemas.google.com/acl/2007' > > > xmlns:batch='http://schemas.google.com/gdata/batch'><atom:id>http:// > > > docs.google.com/feeds/acl/private/full/document%3Adg7wvvh9_28j > > > n7xhfgd</ > > > atom:id><atom:updated>2009-06-23T05:03:41.421Z</ > > > atom:updated><atom:title type='text'>Batch > > > Feed</atom:title><atom:link > > > rel='http://schemas.google.com/g/2005#feed'type='application/atom > > > +xml' href='http://docs.google.com/feeds/acl/private/full/document > > > %3Adg7wvvh9_28jn7xhfgd'/><atom:link > > > rel='http://schemas.google.com/g/2005#batch' > > > type='application/atom+xml' href='http://docs.google.com/ > > > feeds/acl/private/full/document%3Adg7wvvh9_28jn7xhfgd/batch'/ > > > ><atom:entry><atom:id>http://docs.google.com/feeds/acl/private/full/ > > > document%3Adg7wvvh9_28jn7xhfgd/user%3Adaniel%40pelotonics.com</ > > > atom:id><atom:updated>2009-06-23T05:03:41.420Z</ > > > atom:updated><atom:category scheme='http://schemas.google.com/g/ > > > 2005#kind' term='http://schemas.google.com/acl/2007#accessRule'/ > > > ><atom:title type='text'>Document Permission - dan...@pelotonics.com</ > > > atom:title><atom:link rel='self' type='application/atom+xml' > > > href='http://docs.google.com/feeds/acl/private/full/document > > > %3Adg7wvvh9_28jn7xhfgd/user%3Adaniel%40pelotonics.com'/><atom:link > > > rel='edit' type='application/atom+xml' > > > href='http://docs.google.com/ > > > feeds/acl/private/full/document%3Adg7wvvh9_28jn7xhfgd/user%3Adaniel > > > %40pelotonics.com'/><gAcl:role value='writer'/><gAcl:scope type='user' > > > value='dan...@pelotonics.com'/><batch:id>1</batch:id><batch:status > > > code='201' reason='Created'/><batch:operation > > > type='insert'/></ atom:entry></atom:feed> > > > > -------------------------------------------------- > > > > Here is the response on the failed call (I know it failed > > > cause the email is not a collaborator on the document): > > > > <?xml version='1.0' encoding='UTF-8'?><atom:feed > > > xmlns:atom='http://www.w3.org/2005/Atom' > > > xmlns:openSearch='http://a9.com/-/spec/ > > > opensearchrss/1.0/' xmlns:gAcl='http://schemas.google.com/acl/2007' > > > xmlns:batch='http://schemas.google.com/gdata/batch'><atom:id>http:// > > > docs.google.com/feeds/acl/private/full/document%3Adg7wvvh9_28j > > > n7xhfgd</ > > > atom:id><atom:updated>2009-06-23T05:03:43.593Z</ > > > atom:updated><atom:title type='text'>Batch > > > Feed</atom:title><atom:link > > > rel='http://schemas.google.com/g/2005#feed'type='application/atom > > > +xml' href='http://docs.google.com/feeds/acl/private/full/document > > > %3Adg7wvvh9_28jn7xhfgd'/><atom:link > > > rel='http://schemas.google.com/g/2005#batch' > > > type='application/atom+xml' href='http://docs.google.com/ > > > feeds/acl/private/full/document%3Adg7wvvh9_28jn7xhfgd/batch'/ > > > ><atom:entry><atom:id>http://docs.google.com/feeds/acl/private/full/ > > > document%3Adg7wvvh9_28jn7xhfgd/user%3Adanielzev%40yahoo.com</ > > > atom:id><atom:updated>2009-06-23T05:03:43.593Z</ > > > atom:updated><atom:category scheme='http://schemas.google.com/g/ > > > 2005#kind' term='http://schemas.google.com/acl/2007#accessRule'/ > > > ><atom:title type='text'>Document Permission - daniel...@yahoo.com</ > > > atom:title><atom:link rel='self' type='application/atom+xml' > > > href='http://docs.google.com/feeds/acl/private/full/document > > > %3Adg7wvvh9_28jn7xhfgd/user%3Adanielzev%40yahoo.com'/><atom:link > > > rel='edit' type='application/atom+xml' > > > href='http://docs.google.com/ > > > feeds/acl/private/full/document%3Adg7wvvh9_28jn7xhfgd/user%3Adanielzev > > > %40yahoo.com'/><gAcl:role value='writer'/><gAcl:scope type='user' > > > value='daniel...@yahoo.com'/><batch:id>1</batch:id><batch:status > > > code='201' reason='Created'/><batch:operation > > > type='insert'/></ atom:entry></atom:feed> > > > > -------------------------------------------------- > > > > As you can see both returned back code='201' reason='Created' > > > > Am I doing something wrong here? If it fails, it fails... and > > > I'll re- process it... But if the API tells me it worked, > > > then I should believe it. No? > > > > I guess what I could do it double verify... Pull all of the > > > collaborators on the document and double check that person > > > got added in. For the time being, I think that's what I'm > > > going to do right now. > > > But I would like to report this bug (unless I'm missing > > > something here). > > > > thanks! > > > Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---