ubiquity crashed in run() with UnicodeDecodeError when mount point contains accented character

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

Bug Description

1. Launch ubiquity and proceed to 'Advanced Partitioning'
2. Create a partition and enter a mount point with an accent

Ubiquity crashes with:
Exception caught in process_line:
Traceback (most recent call last):
  File "/usr/lib/ubiquity/ubiquity/filteredcommand.py", line 132, in process_line
    return self.dbfilter.process_line()
  File "/usr/lib/ubiquity/ubiquity/debconffilter.py", line 281, in process_line
    if not input_widgets[0].run(priority, question):
  File "/usr/lib/ubiquity/plugins/ubi-partman.py", line 2686, in run
    self.preseed(question, request['mountpoint'], seen=False)
  File "/usr/lib/ubiquity/ubiquity/filteredcommand.py", line 336, in preseed
    value = value.encode("UTF-8", "ignore")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ubiquity 2.7.17
ProcVersionSignature: Ubuntu 3.0.0-9.14-generic 3.0.3
Uname: Linux 3.0.0-9-generic i686
Architecture: i386
CasperVersion: 1.279
Date: Thu Aug 25 14:37:24 2011
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110825)
 PATH=(custom, no user)
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in ubiquity (Ubuntu Oneiric):
milestone: none → ubuntu-11.10-beta-1
importance: Undecided → High
assignee: nobody → Ubuntu Installer Team (ubuntu-installer)
Revision history for this message
Stéphane Graber (stgraber) wrote :

Apparently my other utf-8 fix in current ubiquity trunk seems to have fixed this one as well.

I just did an install with /stéphane as an extra ext4 partition and it worked fine.

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: New → 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.