Skip to content

Unhandled exception / server error in lookup_community_list() when raising a MultiplePersonError when Person does not have a user #8003

Closed
@jennifer-richards

Description

Describe the issue

If more than one Person matches the email_or_name argument to lookup_community_list() and one or more of those Persons has no user, an unexpected exception occurs. This usually results in a 500 (server error) response.

The method is trying to populate a MultiplePersonError with a list of usernames that can be used to put together a list of disambiguated options for a 300 status code response. That's a helpful spirit, but given that we can't necessarily support that feature in general (and because it's unclear that browsers will actually do helpful things with the 300), I think it'd be better just to return a 404. If someone has trouble accessing their community list, they'll ask for help.

Code of Conduct

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions