Wubi crashes with special character password

Bug #792638 reported by bcbc
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Wubi
Triaged
Medium
Unassigned

Bug Description

To duplicate problem, run wubi, enter a password containing an é e.g. "één". Wubi is happy with this and proceeds to install, didn't download in my case as I was running from CD but probably would download the entire CD, and the crashes when it creates the preseed file.

Also... the Wubi error message PRINTS THE PASSWORD ON THE SCREEN when it reports the exception.

Here is the relevant excerpt from the log:
06-03 17:02 DEBUG TaskList: ## Running create_preseed...
06-03 17:02 ERROR TaskList: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 573, in create_preseed
  File "\lib\wubi\backends\common\utils.py", line 89, in md5_password
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

Revision history for this message
bcbc (bcbc) wrote :
Revision history for this message
bcbc (bcbc) wrote :
Changed in wubi:
status: New → Confirmed
Revision history for this message
bcbc (bcbc) wrote :

The crash is from backends\common\utils.py

Simulating from python command line:
>>> import md5
>>> hash = md5.new()
>>> passwd = u'\xe9'
>>> print passwd
é
>>> print passwd[0]
é
>>> hash.update(passwd)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0: ordinal not in range(128)

But this works:
>>> passwd="één"
>>> hash.update(passwd)
>>> print passwd
één
>>> print passwd[0]

>>> print passwd[1]

>>> print passwd[2]

>>> print passwd[3]

>>> print passwd[4]
n

bcbc (bcbc)
description: updated
summary: - Wubi crashes with special character password (accent aigu)
+ Wubi crashes with special character password
tags: added: natty quantal
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/792638

tags: added: iso-testing
Changed in wubi:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

No more reproducible

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

reproducible today installing 12.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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