SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

Error in DocumentList downloadDocument method #329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Use the sample.docs.DocumentList.java application to access google docs.

1.get a resource id from google docs (doing a search)
2.copy-paste the document id on the sample programs' command prompt
3.the program exists with an error.  if you don't include document:, the 
program won't work, if you do, it exits with an error.

What is the expected output? What do you see instead?
The program should download the file to the path

What version of the product are you using? On what operating system?
Google api client with sample code 1.3

Please provide any additional information below.
The error is fixed by taking out "document:" from the final URL in 
DocumentList.java line 625.  The error happens because the original code 
includes document: in the URL. Since the source code is for programmer learning 
the API, the bug can be hard to find, and can make it harder to learn the API.

Original issue reported on code.google.com by jeremyvillalobos on 19 Mar 2011 at 3:48