"Email already registered" error is not being sent inside a list
Bug #624955 reported by
Natalia Bidart
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical SSO provider |
Fix Released
|
Medium
|
Łukasz Czyżykowski |
Bug Description
We're expecting status result from a registration attempt to be of the form:
{'status': 'error', 'errors': {'email': ['error1', 'error2']}}
For the error "Email already registered" we're getting:
{u'status': u'error', u'errors': {u'email': u'Email already registered'}}
Related branches
lp:~canonical-isd-hackers/canonical-identity-provider/fix-api-email-error
- Stuart Metcalfe (community): Approve
-
Diff: 53 lines (+26/-1)2 files modifiedidentityprovider/tests/test_models_api.py (+25/-0)
identityprovider/webservice/models.py (+1/-1)
Changed in canonical-identity-provider: | |
assignee: | nobody → Anthony Lenton (elachuni) |
Changed in canonical-identity-provider: | |
milestone: | none → 2.9.0 |
Changed in canonical-identity-provider: | |
assignee: | Anthony Lenton (elachuni) → nobody |
Changed in canonical-isd-qa: | |
milestone: | none → canonical-identity-provider+2.9.0 |
Changed in canonical-identity-provider: | |
importance: | Undecided → Medium |
Changed in canonical-identity-provider: | |
milestone: | 2.9.0 → 1-commitment |
Changed in canonical-identity-provider: | |
milestone: | 1-commitment → 2-implementation |
Changed in canonical-identity-provider: | |
assignee: | nobody → Łukasz Czyżykowski (lukasz-czyzykowski) |
Changed in canonical-identity-provider: | |
status: | Confirmed → In Progress |
Changed in canonical-identity-provider: | |
status: | In Progress → Fix Committed |
Changed in canonical-identity-provider: | |
milestone: | 2-implementation → 3-internal-qa |
tags: | removed: kb-block |
Changed in canonical-identity-provider: | |
milestone: | 4-staging → 5-production |
Changed in canonical-identity-provider: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Example of the expected errors is:
{u'status': u'error', u'errors': {u'email': [u'Enter a valid e-mail address.'], u'__all__': [u'Wrong captcha solution.']}}