Skip to content
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

Merged
merged 2 commits into from
Nov 9, 2017
Merged

Add status for unknown user's filter ID #1045

merged 2 commits into from
Nov 9, 2017

Conversation

maxidorius
Copy link
Contributor

@maxidorius maxidorius commented Oct 29, 2017

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)

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@@ -147,5 +147,7 @@ paths:
type: object
allOf:
- $ref: "definitions/sync_filter.yaml"
400:
Copy link
Member

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)

Copy link
Contributor Author

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.

Copy link
Member

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".

Copy link
Contributor Author

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.

@richvdh
Copy link
Member

richvdh commented Nov 9, 2017

👍

@richvdh richvdh merged commit 88fb2e9 into matrix-org:master Nov 9, 2017
@maxidorius maxidorius deleted the max/cs/unknow_filter_status branch November 9, 2017 19:24
RiotTranslateBot pushed a commit to RiotTranslateBot/matrix-doc that referenced this pull request Aug 22, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants