-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add status for unknown user's filter ID #1045
Add status for unknown user's filter ID #1045
Conversation
Can one of the admins verify this patch? |
api/client-server/filter.yaml
Outdated
@@ -147,5 +147,7 @@ paths: | |||
type: object | |||
allOf: | |||
- $ref: "definitions/sync_filter.yaml" | |||
400: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a 404? (Even if synapse is returning 400 here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what should be the status code.This PR is only to document existing behavior so the community can benefit from it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me put it more strongly then. "I think this should be a 404 and synapse should be fixed".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set to 404
following your feedback.
👍 |
* Attempt to define a valid event Resolves matrix-org#1044. Well, maybe. * Changelog * link to /rooms, thanks Travis Co-authored-by: Travis Ralston <travpc@gmail.com> Co-authored-by: Travis Ralston <travpc@gmail.com>
This PR fixes a spec omission about the specific status code returned when an unknown user's filter ID is requested.
Signed-off-by: Max Dor @ Kamax.io (no email to avoid spam)