carolinux / gdata-python-client

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

Batch ACL Docs Update produces wrong URI #587

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Batch updating ACLs leads to a generated URI like so:

https://docs.google.com/feeds/default/private/full/blah/acl/acl/batch

The double acl looks problematic.

diff -r 15e17565f0ed src/gdata/docs/client.py
--- a/src/gdata/docs/client.py  Tue Jan 24 12:04:49 2012 +0530
+++ b/src/gdata/docs/client.py  Tue Jan 24 14:07:05 2012 -0600
@@ -733,7 +733,7 @@
     feed = gdata.docs.data.AclFeed()
     feed.entry = entries
     return super(DocsClient, self).post(
-        feed, uri=resource.GetAclLink().href + '/acl/batch', **kwargs)
+        feed, uri=resource.GetAclLink().href + '/batch', **kwargs)

   BatchProcessAclEntries = batch_process_acl_entries

thanks

Original issue reported on code.google.com by akrh...@gmail.com on 24 Jan 2012 at 8:09

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in revision 3265462309de.

Original comment by vicfry...@google.com on 26 Jan 2012 at 3:43