My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 187: Unable to Edit Documents in Google Apps Domains
1 person starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 167
Owner:  ----
Closed:  Jun 2010


Sign in to add a comment
 
Reported by hiranya...@gmail.com, Jun 29, 2010
This is a continuation of  issue 49 . Revision 307 was supposed to fix this problem but it seems still there are a few problems. (I'm creating this new issue since 49 has been marked as "Fixed")

What steps will reproduce the problem?

1. Try to edit a document in a Google Apps domain (google docs edit --user me@mydomain.com --title "Test" --editor vim)
2.Enter the Google Apps password in the login page shown in the web browser and grant access

What is the expected output? What do you see instead?

Authentication step will succeed. But then the following error is displayed:

Traceback (most recent call last):
  File "/usr/local/bin/google", line 488, in <module>
    main()
  File "/usr/local/bin/google", line 482, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 381, in run_once
    task.run(client, options, args)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/docs/service.py", line 492, in _run_edit
    client.edit_doc(doc_entry, editor, format_ext)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/docs/service.py", line 93, in edit_doc
    self.Export(doc_entry.content.src, path)
  File "/usr/lib/pymodules/python2.6/gdata/docs/service.py", line 360, in Export
    self.Download(entry_or_id_or_url, file_path, ext, gid, extra_params)
  File "/usr/lib/pymodules/python2.6/gdata/docs/service.py", line 339, in Download
    self._DownloadFile(url, file_path)
  File "/usr/lib/pymodules/python2.6/gdata/docs/service.py", line 177, in _DownloadFile
    'body': response_body}
gdata.service.RequestError: {'status': 302, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has moved <A HREF="https://docs.google.com/feeds/download/documents/Export?exportFormat=txt&amp;docId=0AZPqQnIzeyKWZGcycXJrczVfMjBmejdtcDJkZw">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Moved Temporarily'}

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

OS: Ubuntu 9.04
python-gdata: 2.0.8
python: 2.6
googlecl: trunk (r308)

Please provide any additional information below.

When trying to "get" a document, following error is shown:

Downloading Test GoogleCL to /home/hiranya/Projects/Test/googlecl-read-only/Test GoogleCL.txt
{'status': 302, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has moved <A HREF="https://docs.google.com/feeds/download/documents/Export?exportFormat=txt&amp;docId=0AZPqQnIzeyKWZGcycXJrczVfMjBmejdtcDJkZw">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Moved Temporarily'}
Download of Test GoogleCL failed
Jun 29, 2010
Project Member #1 tom.h.mi...@gmail.com
Ah, the dreaded 302. See the issue this has been merged into.
Status: Duplicate
Mergedinto: 167
Sign in to add a comment

Powered by Google Project Hosting