Calling twice generate_captcha fails

Bug #851004 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Fix Released
Medium
Diego Sarmentero

Bug Description

If you call twice in a row to _refresh_captcha, we get this error:

2011-09-15 12:14:29,348:348.000049591 - ubuntu_sso.controllers - DEBUG - SetUpAc
countController.on_captcha_generated for u'Ubuntu One' (captcha id u'03AHJ_VusqN
R0qf0hnaJ8Mx70SBOaIKMmB5M26swObL83GvExIpC7t7TpcU_i5l_tPcmm3a_BkjQ7coX5KOLUyJ6TOC
c5RV-9y3f_z6S6qAsRzKIrElfwm-m9YFPEfIsWcHS_TR0AMqjtzijQZUjrEVAJ6Wi8iUCSDjg', file
name 'c:\\users\\test\\appdata\\local\\temp\\tmpyppfiw').
Peer will receive following PB traceback:
Unhandled Error
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\twisted\spread\banana.py", line 153, in go
tItem
    self.callExpressionReceived(item)
  File "C:\Python27\lib\site-packages\twisted\spread\banana.py", line 116, in ca
llExpressionReceived
    self.expressionReceived(obj)
  File "C:\Python27\lib\site-packages\twisted\spread\pb.py", line 515, in expres
sionReceived
    method(*sexp[1:])
  File "C:\Python27\lib\site-packages\twisted\spread\pb.py", line 827, in proto_
message
    self._recvMessage(self.localObjectForID, requestID, objectID, message, answe
rRequired, netArgs, netKw)
--- <exception caught here> ---
  File "C:\Python27\lib\site-packages\twisted\spread\pb.py", line 841, in _recvM
essage
    netResult = object.remoteMessageReceived(self, message, netArgs, netKw)
  File "C:\Python27\lib\site-packages\twisted\spread\flavors.py", line 114, in r
emoteMessageReceived
    state = method(*args, **kw)
  File "E:\ussoc\better-setup-account-button\ubuntu_sso\main\windows.py", line 6
46, in callback_wrapper
    return callback(*args, **kwargs)
  File "E:\ussoc\better-setup-account-button\ubuntu_sso\qt\controllers.py", line
 385, in on_captcha_generated
    pil_image = Image.open(self.view.captcha_file)
  File "C:\Python27\lib\site-packages\pil-1.1.7-py2.7-win32.egg\Image.py", line
1952, in open
    fp = __builtin__.open(fp, "rb")
exceptions.IOError: [Errno 2] No such file or directory: 'c:\\users\\test\\appda
ta\\local\\temp\\tmpyppfiw'

Related branches

Changed in ubuntu-sso-client:
assignee: nobody → Diego Sarmentero (diegosarmentero)
status: New → Triaged
importance: Undecided → Medium
tags: added: u1-zomg-windows
Changed in ubuntu-sso-client:
status: Triaged → In Progress
tags: added: u1-windows
Changed in ubuntu-sso-client:
status: In Progress → Fix Committed
Changed in ubuntu-sso-client:
status: Fix Committed → 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.