-
Notifications
You must be signed in to change notification settings - Fork 411
MSC4335: M_USER_LIMIT_EXCEEDED error code #4335
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
base: main
Are you sure you want to change the base?
Conversation
@mscbot fcp merge |
Team member @mscbot has proposed to merge this. The next step is review by the rest of the tagged people: Concerns:
Once at least 75% of reviewers approve (and there are no outstanding concerns), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for information about what commands tagged team members can give me. |
This error code does not specify the exact nature of the limit that was exceeded, which could | ||
potentially lead to ambiguity. However, this is consistent with other Matrix error codes that | ||
rely on the human-readable `error` field to provide specific details. Instead the `info_uri` | ||
provides a way for the homeserver to apply arbitrary limits without the client having to understand | ||
every type in advance. |
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.
Should we include a type
field that gets passed to info_uri
as a query parameter or something?
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.
Why not just encode the necessary information in info_uri
straight away on the server side?
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.
Why not just encode the necessary information in
info_uri
straight away on the server side?
Exactly. The intention is that the URIs are opaque and the homeserver may choose to put a type or similar field in there.
I've attempted to clarify this in 4dd453b.
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.
Why not just encode the necessary information in
info_uri
straight away on the server side?
Well I assume you want to tell people what limit they've passed, would each of those be a separate info_uri
? Feels like it ties your homeserver implementation tightly to whatever is at those URIs.
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'm not understanding how just saying they're "opaque" resolves this. This makes it very tied to particular homeserver implementations.
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.
That’s the point. It is tied to the homeserver.
Why is that a concern?
MSCs proposed for Final Comment Period (FCP) should meet the requirements outlined in the checklist prior to being accepted into the spec. This checklist is a bit long, but aims to reduce the number of follow-on MSCs after a feature lands. SCT members: please check off things you check for, and raise a concern against FCP if the checklist is incomplete. If an item doesn't apply, prefer to check it rather than remove it. Unchecking items is encouraged where applicable. Checklist:
|
@mscbot concern Checklist not complete/started (any SCT member can resolve this) |
Rendered
Implementations:
In the prototype implementation when this error code is encountered for a file upload, it is rendered as follows for a soft limit:
And like this for a hard limit:
I am employed by Element to write this MSC on behalf of the Matrix Foundation for use on the matrix.org homeserver.
SCT Stuff:
MSC checklist
FCP tickyboxes