ubiquity crashed with UnicodeDecodeError in check_hostname(): 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)

Bug #831455 reported by Jean-Baptiste Lallement
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
High
Ubuntu Installer Team
Oneiric
Fix Released
High
Ubuntu Installer Team

Bug Description

Oneiric Desktop 20110822

TEST CASE:
In 'Who are you/Computer name' enter a name with accented letters.

Traceback (most recent call last):
  File "/usr/lib/ubiquity/plugins/ubi-usersetup.py", line 391, in info_loop
    error_msg = check_hostname(txt)
  File "/usr/lib/ubiquity/plugins/ubi-usersetup.py", line 45, in check_hostname
    for result in validation.check_hostname(unicode(hostname)):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: ubiquity 2.7.15
ProcVersionSignature: Ubuntu 3.0.0-9.12-generic 3.0.3
Uname: Linux 3.0.0-9-generic x86_64
Architecture: amd64
CasperVersion: 1.279
Date: Mon Aug 22 18:11:45 2011
ExecutablePath: /usr/lib/ubiquity/bin/ubiquity
InterpreterPath: /usr/bin/python2.7
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110822)
ProcCmdline: /usr/bin/python /usr/lib/ubiquity/bin/ubiquity -d
ProcCwd: /home/ubuntu
ProcEnviron: Error: [Errno 13] Permission denied: '/proc/3378/environ'
PythonArgs: ['/usr/lib/ubiquity/bin/ubiquity', '-d']
SourcePackage: ubiquity
Title: ubiquity crashed with UnicodeDecodeError in check_hostname(): 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
visibility: private → public
description: updated
Changed in ubiquity (Ubuntu Oneiric):
importance: Undecided → High
assignee: nobody → Canonical Foundations Team (canonical-foundations)
tags: removed: need-duplicate-check
Changed in ubiquity (Ubuntu Oneiric):
assignee: Canonical Foundations Team (canonical-foundations) → Ubuntu Installer Team (ubuntu-installer)
milestone: none → ubuntu-11.10-beta-1
Revision history for this message
Stéphane Graber (stgraber) wrote :

I just commited a few bugfixes to the ubiquity branch which at least here let me install with a fullname containing UTF-8.

Changed in ubiquity (Ubuntu Oneiric):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 2.7.19

---------------
ubiquity (2.7.19) oneiric; urgency=low

  [ Stéphane Graber ]
  * Properly handle unicode in calls to preseed (LP: #831455)
  * Properly handle unicode for device and mountpoints name (LP: #833813)
  * Port Ubiquity's accessibility indicator to gobject introspection
  * Fix a minor gobject introspection port issue (Gdk.CONTROL_MASK should
    be Gdk.ModifierType.CONTROL_MASK)
  * Fix ubi-timezone changed() function missing a parameter

  [ Colin Watson ]
  * Adjust timezone tests for change in timezone changed() signature.
  * Mock ubiquity.misc.drop_privileges and ubiquity.misc.regain_privileges
    during test_face_selector_save_to.
  * Mock ubiquity.frontend.base.drop_privileges in GTK frontend tests to
    cope with 'from ubiquity.misc import drop_privileges' form.
  * Mock ubiquity.nm.wireless_hardware_present in GTK frontend tests, as it
    may not be able to talk to D-Bus.
 -- Colin Watson <email address hidden> Mon, 29 Aug 2011 17:26:51 +0100

Changed in ubiquity (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Brad Figg (brad-figg)
tags: added: rls-mgr-o-tracking
tags: added: testcase
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.