Issue 502 in googlecl: --folder parameter no longer works in trunk

24 views
Skip to first unread message

goog...@googlecode.com

unread,
Nov 18, 2012, 11:45:21 AM11/18/12
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 502 by nshenr...@gmail.com: --folder parameter no longer works in
trunk
http://code.google.com/p/googlecl/issues/detail?id=502

What steps will reproduce the problem?
1. Download the latest googlecl: svn checkout
http://googlecl.googlecode.com/svn/trunk/ googlecl-read-only
2. Force Install: sudo python setup.py install --force
3. List Documents in folder: google docs --folder='Newsletters' list

What is the expected output? What do you see instead?
I expect to see all of the documents in the "Newsletters" folder; however,
I get the following error with a list of all of my documents (inside and
outside this folder):
Failed to get entries: Server responded with: 400, <errors
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>unsupportedQueryParam</code><internalReason>The 'max-results'
parameter is not supported on this
resource</internalReason></error></errors>
No folder found that matches Newsletters

What version of the product are you using?
googlecl revision: 602
gdata-python-client (python-gdata) id: a8c25010b8b7 tip
On what operating system?
Ubuntu 12.04.1 LTS (x86_64) (3.2.0-33-generic)



Please provide any additional information below.
If I download the 'googlecl-0.9.13' tarball and force install, then the
--folder parameter works as expected

Jason Holt

unread,
Nov 18, 2012, 2:16:52 PM11/18/12
to google...@googlegroups.com
Thanks for the bug report.  That bug is high on our list of things to fix and should get fixed this quarter.

goog...@googlecode.com

unread,
Dec 6, 2012, 2:31:23 PM12/6/12
to google...@googlegroups.com
Updates:
Status: Accepted
Owner: szy...@endpoint.com

Comment #1 on issue 502 by szy...@endpoint.com: --folder parameter no
(No comment was entered for this change.)

goog...@googlecode.com

unread,
Dec 6, 2012, 3:16:49 PM12/6/12
to google...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 502 by szy...@endpoint.com: --folder parameter no
This issue was closed by revision r606.

goog...@googlecode.com

unread,
Dec 6, 2012, 11:13:48 PM12/6/12
to google...@googlegroups.com

Comment #4 on issue 502 by nshenr...@gmail.com: --folder parameter no
Thanks szy...@endpoint.com, that works correctly; however, now it looks
like the upload feature has some problems:
google docs upload --title="Newsletter $(date --date=$(echo ${originalPDF}
| sed -e 's/^.*_//' -e 's/\..*$//') +'%B %d, %Y')" --folder="Newsletters"
${originalPDF}

The file uploads; however, it just uploads to the Google Docs root
folder... I don't see any errors or anything; however, if it matters, this
folder is a 'Shared' folder...

Thanks,
Nick

goog...@googlecode.com

unread,
Dec 6, 2012, 3:17:58 PM12/6/12
to google...@googlegroups.com

Comment #3 on issue 502 by szy...@endpoint.com: --folder parameter no
Fixed in trunk, will be in release 0.9.14.

goog...@googlecode.com

unread,
Dec 7, 2012, 11:45:16 AM12/7/12
to google...@googlegroups.com
Updates:
Status: Accepted

Comment #5 on issue 502 by szy...@endpoint.com: --folder parameter no
Hi Nick,
thanks for the information. One question: when it working for you, which
gdata version you were using?

goog...@googlecode.com

unread,
Dec 7, 2012, 12:30:28 PM12/7/12
to google...@googlegroups.com

Comment #6 on issue 502 by nshenr...@gmail.com: --folder parameter no
The latest from trunk on Nov 18th:
gdata-python-client (python-gdata) id: a8c25010b8b7 tip

I just updated to the lastest again and had the same issue (it uploaded to
the root directory rather than the 'Newsletters" directory...
* hg clone https://code.google.com/p/gdata-python-client/
* hg id
* > f76c53eaf151 tip
* sudo python setup.py install --force
* google docs upload --title="TEST" --folder="Newsletters"
~/Documents/ChefTrainingMaterials/FND-Instructor-Guide.pdf
* > Upload success! Direct link:
https://docs.google.com/a/changed.org/file/d/0B0Eh_O0RTru9LXZsekFraGdqcWM/edit

Thanks,
Nick

P.S. Thanks a bunch, even w/o it going to the right folder, this script
saves me lots of time and effort! :-D

goog...@googlecode.com

unread,
Dec 12, 2012, 8:23:54 AM12/12/12
to google...@googlegroups.com

Comment #7 on issue 502 by szy...@endpoint.com: --folder parameter no
Seems like there is a bug in gdata, currently I cannot do anything about
this.

Created two issues in the gdata project:

* http://code.google.com/p/gdata-python-client/issues/detail?id=651
* http://code.google.com/p/gdata-python-client/issues/detail?id=652

goog...@googlecode.com

unread,
Dec 12, 2012, 12:15:22 PM12/12/12
to google...@googlegroups.com

Comment #8 on issue 502 by nshenr...@gmail.com: --folder parameter no
Great, thank you! :-)

goog...@googlecode.com

unread,
Feb 15, 2013, 3:04:36 PM2/15/13
to google...@googlegroups.com

Comment #9 on issue 502 by JMRichar...@gmail.com: --folder parameter no
Hello, I am having the same problem. Any other solution than waiting for
fix in gdata? Thanks.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

goog...@googlecode.com

unread,
Feb 15, 2013, 3:13:21 PM2/15/13
to google...@googlegroups.com

Comment #10 on issue 502 by jh...@google.com: --folder parameter no longer
We're pretty much tied to what's in python gdata, sorry. One interesting
question is whether the bug is in the python gdata library, or a problem in
the underlying gdata JSON interface. If it's the latter, then you wouldn't
even be able to fix it by patching python gdata.

goog...@googlecode.com

unread,
Mar 8, 2013, 6:00:56 PM3/8/13
to google...@googlegroups.com

Comment #11 on issue 502 by digitalt...@gmail.com: --folder parameter no
Sigh. Wish I'd seen this issue 2 hours ago... never mind. Good to know it's
not me doing something wrong.

Would be good to get a note/warning in the docs, though, until gdata is
fixed.

https://code.google.com/p/googlecl/wiki/ExampleScripts#upload says
"Note: --folder will accept only one folder to upload into. If you have two
or more folders with the same name, even subfolders, you will have to pick
between them (hard to do when they have the same name)".

https://code.google.com/p/googlecl/source/browse/trunk/src/googlecl/docs/service.py
says:

Some use cases:
Upload a document:
docs upload --folder "Some folder" path_to_doc

But in this ticket, the format
--folder="Newsletters"
is used.

Not that any of the above in any order work. I've starred the two issues
opened by szy... in #7.

Seems to be a lot of issues from a fair while ago in the gdata project not
accepted yet and quite quiet on the commit front.

I'm using googlecl 0.9.14 checked out from SVN which includes gdata 2.0.17.
Python 2.7.3

goog...@googlecode.com

unread,
Apr 5, 2013, 3:05:09 PM4/5/13
to google...@googlegroups.com

Comment #12 on issue 502 by jh...@google.com: --folder parameter no longer
Issue 516 has been merged into this issue.

goog...@googlecode.com

unread,
Apr 5, 2013, 3:08:09 PM4/5/13
to google...@googlegroups.com

Comment #13 on issue 502 by jh...@google.com: --folder parameter no longer
Issue 517 has been merged into this issue.

goog...@googlecode.com

unread,
Apr 5, 2013, 3:10:50 PM4/5/13
to google...@googlegroups.com

Comment #14 on issue 502 by jh...@google.com: --folder parameter no longer
Thanks digitaltoast for mentioning the docs. I've updated that page to note
that --folder is currently broken.

goog...@googlecode.com

unread,
Nov 8, 2014, 10:44:23 PM11/8/14
to google...@googlegroups.com

Comment #15 on issue 502 by ary...@gmail.com: --folder parameter no longer
works in trunk
https://code.google.com/p/googlecl/issues/detail?id=502

Any updates on this problem?
Reply all
Reply to author
Forward
0 new messages