Cloudprint crashes on incorrect password

Bug #1003390 reported by Ben Rousch
34
This bug affects 8 people
Affects Status Importance Assigned to Milestone
cloudprint (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When running cloudprint for the first time, I put in the wrong password for my Google account. Cloudprint crashed with a Python traceback. In this situation I expected it to give a normal error message like "Incorrect Password" instead of crashing.

Here is the traceback:

Traceback (most recent call last):
  File "/usr/bin/cloudprint", line 9, in <module>
    load_entry_point('cloudprint==0.5', 'console_scripts', 'cloudprint')()
  File "/usr/lib/pymodules/python2.7/cloudprint/cloudprint.py", line 366, in main
    sync_printers(cups_connection, cpp)
  File "/usr/lib/pymodules/python2.7/cloudprint/cloudprint.py", line 255, in sync_printers
    remote_printers = dict([(p.name, p) for p in cpp.get_printers()])
  File "/usr/lib/pymodules/python2.7/cloudprint/cloudprint.py", line 113, in get_printers
    r = self.get_rest()
  File "/usr/lib/pymodules/python2.7/cloudprint/cloudprint.py", line 109, in get_rest
    auth = self.get_auth()
  File "/usr/lib/pymodules/python2.7/cloudprint/cloudprint.py", line 66, in get_auth
    self.set_auth(auth_response['Auth'])
UnboundLocalError: local variable 'auth_response' referenced before assignment

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cloudprint (Ubuntu):
status: New → Confirmed
Revision history for this message
Ryan (backu68) wrote :

also affects correct password, believe it does not handle !@#$%^&*() characters

Revision history for this message
Ryan (backu68) wrote :

Nevermind.. changed my password and it's still happening

Revision history for this message
Dave Steele (dsteele-gmail) wrote :

Google now requires OAuth2 for cloudprint authentication. Any version of cloudprint which accepts a password (~ <0.11-6) is unusable. This should be closed.

Revision history for this message
Dave Steele (dsteele-gmail) wrote :

Cloudprint has not worked with passwords for years.

Changed in cloudprint (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.