ubiquity crash when hostname is too long
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Here is the trace log in precise-updates.
Exception in GTK frontend (invoking crash handler):
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return "\n".join(
TypeError: sequence item 0: expected string, NoneType found.
After dig the source code I found the error was set wrong, without prefix 'ubiquity/text/', so that when use controller.
=== modified file 'ubiquity/
--- ubiquity/
+++ ubiquity/
@@ -42,13 +42,13 @@
errors = []
for result in validation.
if result == validation.
- errors.
+ errors.
elif result == validation.
- errors.
+ errors.
elif result == validation.
- errors.
+ errors.
elif result == validation.
- errors.
+ errors.
return errors
def check_username(
Here is the patch to fix the check_hostname function.