AssertionError when hostname contains spaces and characters outside of [a-z0-9-]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Single Sign On Client |
Confirmed
|
Medium
|
Brian Curtin |
Bug Description
First of all, no, you should never set your hostname to something that contains spaces, letters outsize of the ASCII space, special characters or minus sign. This is RFC 952 and 1123. It is technically possible to do this, but it does not make it a good idea.
Anyway...
If a hostname contains e.g. a space character, Ubuntu SSO backend will fail with AssertionError with the following in the log:
2012-11-28 19:59:05,
Traceback (most recent call last):
File "/usr/lib/
result = yield f(self, *a, **kw)
AssertionError
This happens because the code in ubuntu_
quote(u"
quote(u"broken hostname") -> 'broken%20hostname'
Afterwards assert(
Changed in ubuntu-sso-client: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Ubuntu One Client Engineering team (ubuntuone-client-engineering) |
tags: | added: sso u1-client |
Changed in ubuntu-sso-client: | |
assignee: | Ubuntu One Client Engineering team (ubuntuone-client-engineering) → Brian Curtin (brian.curtin) |
tags: |
added: u1-ubuntu removed: u1-client |