UnicodeEncodeError creating a team that contains non-ASCII on name via API

Bug #619180 reported by Ursula Junque
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restful
Fix Released
Critical
Unassigned

Bug Description

As seen on OOPS-1689S533:
  UnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 16: ordinal not in range(128)

Steps to reproduce:
1) lp = Launchpad.login_with("test", "staging", version="devel")
2) lp.people.newTeam(name="úrsula", display_name="Úrsula's team")
3) Boom! UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 15: ordinal not in range(128)

Related branches

Ursula Junque (ursinha)
tags: added: api
Revision history for this message
Curtis Hovey (sinzui) wrote :

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.

affects: launchpad-registry → launchpad-foundations
Revision history for this message
Gary Poster (gary) wrote :

To state the obvious and the possibly irrelevant: if the validation is done in views, it won't be done in the API.

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Changed in launchpad:
importance: Low → Critical
William Grant (wgrant)
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.
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.