Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Return a 404 for admin api user lookup if user not found #6901

Merged
merged 5 commits into from
Feb 12, 2020

Conversation

anoadragon453
Copy link
Member

Fixes #6900

@anoadragon453 anoadragon453 requested a review from a team February 12, 2020 17:22
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -152,6 +152,9 @@ def __init__(self, hs):

ret = await self.admin_handler.get_user(target_user)

if not ret:
raise SynapseError(404, "User not found", errcode=Codes.NOT_FOUND)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NotFoundError is a thing.

@anoadragon453 anoadragon453 merged commit d899494 into develop Feb 12, 2020
@anoadragon453 anoadragon453 deleted the anoa/admin_api_user_404 branch February 12, 2020 18:14
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'd8994942f':
  Return a 404 for admin api user lookup if user not found (#6901)
  Move the warning at the top of the release changes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants