prayagverma / gdata-python-client

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

Python - API 2.0.15 HG - move_resource() deleting collections when resource is moved. #581

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This ticket is in response to forum posting with same title located at:
https://groups.google.com/forum/embed/?place=forum/google-documents-list-api&sho
wsearch=true&showpopout=true&parenturl=http://code.google.com/apis/documents/for
um.html#!topic/google-documents-list-api/EE49YbPUdG0

What steps will reproduce the problem?
1. Use 2-legged oauth 
2. Copy (or create) resource to (in) folder
3. Move resource to another folder. 

What is the expected output? What do you see instead?
- Expected output = resource moved to new location.  Old location stays intact.
- Observed output = resource moved.  Old location deleted.

What version of the product are you using?
- Python v2.7
-Google API v 2.0.15 (HG Repository version DL'd on 2012/01/05)

Please provide any additional information below.
- Problem is due to the ?xoauth_requestor_id=xxx@yyyy.zzz extension obtained as 
part of the collection href (~line 518).  This needs to be removed when 
constructing the uri to allow 2-legged oauth to work.

Original issue reported on code.google.com by robert.e...@seagate.com on 6 Jan 2012 at 5:13

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 2 Feb 2012 at 2:52