UnicodeEncodeError creating a team that contains non-ASCII on name via API
Bug #619180 reported by
Ursula Junque
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Fix Released
|
Critical
|
Unassigned |
Bug Description
As seen on OOPS-1689S533:
UnicodeEncode
Steps to reproduce:
1) lp = Launchpad.
2) lp.people.
3) Boom! UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 15: ordinal not in range(128)
Related branches
lp:~leonardr/lazr.restful/bug-619180
- Данило Шеган (community): Approve
-
Diff: 96 lines (+29/-8)5 files modifiedsrc/lazr/restful/NEWS.txt (+3/-0)
src/lazr/restful/_operation.py (+3/-3)
src/lazr/restful/example/base/tests/collection.txt (+10/-0)
src/lazr/restful/example/base/tests/field.txt (+1/-5)
src/lazr/restful/testing/helpers.py (+12/-0)
tags: | added: api |
Changed in launchpad: | |
importance: | Low → Critical |
affects: | launchpad → lazr.restful |
Changed in lazr.restful: | |
status: | Triaged → Fix Committed |
Changed in lazr.restful: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I cannot reproduce this on the web site, the name is correctly reported as invalid and the user is asked to fix it. The display name is fine and it accepted. I think something is getting mangle in the API submission. This may relate to the issue where fields are not validated on certain operations.