-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Check for version is not allowing newer versions than the minimum version #3915
Comments
https://github.com/search?q=repo%3Amatrix-org%2Fmatrix-js-sdk+%2Fv1%5C.%5Cd%2F+path%3Asrc%2F&type=code as linked by @clokep in the spec room suggests that js-sdk might actually want to check for minimum support of 1.1 instead of "including and more" as it currently does. |
Where does it say that? |
It doesnt explicitly say that. It however also doesnt require that you have to list the older versions. So this is practically open for interpretation. With:
In https://spec.matrix.org/v1.8/#specification-versions it might be that servers actually would need to implement 1.1 side by side for it to be working with js-sdk but I doubt this is the intention of either the sdk or the spec. |
Sounds like time for a spec clarification issue |
@turt2live has clarified: it should not be a range check; however we should bump the minimum. |
I spent a lot longer talking to @turt2live about this this evening, trying to understand how the /versions check is supposed to work, and the constraints around the js-sdk in particular. Some conclusions:
|
On the topic of bullet point 4, aren't room versions usually accompanied with a spec release? |
@TheArcaneBrony: let's not get distracted with the off-topic subject of room versions. |
This commit does two things: * It puts the "minimum supported matrix version" from v1.5 back down to v1.1. In other words, it is a partial revert of #3970. (Partial, because we don't need to update the tests.) We're doing this largely because #3970 was introduced without a suitable announcement and deprecation policy. We haven't yet decided if the js-sdk's spec support policy needs to change, or if we will re-introduce this change in future in a more graceful manner. * It increases the "maximum supported matrix version" from v1.5 up to v1.9. Previously, the two concepts were tied together, but as discussed at length in #3915 (comment), this is incorrect. Unfortunately, we have no real way of testing whether it is true that the js-sdk actually works with a server which supports *only* v1.9, but as per the comment above, we can't do much about that. Fixes #3915.
Something of a compainion to matrix-org/matrix-js-sdk#4014, but also covering the issues discussed at matrix-org/matrix-js-sdk#3915 (comment). In short: we should not reject servers which only implement recent versions of the spec. Doing so holds back the ecosystem by requiring all new servers to implement features that nobody actually uses any more.
This commit does two things: * It puts the "minimum supported matrix version" from v1.5 back down to v1.1. In other words, it is a partial revert of #3970. (Partial, because we don't need to update the tests.) We're doing this largely because #3970 was introduced without a suitable announcement and deprecation policy. We haven't yet decided if the js-sdk's spec support policy needs to change, or if we will re-introduce this change in future in a more graceful manner. * It increases the "maximum supported matrix version" from v1.5 up to v1.9. Previously, the two concepts were tied together, but as discussed at length in #3915 (comment), this is incorrect. Unfortunately, we have no real way of testing whether it is true that the js-sdk actually works with a server which supports *only* v1.9, but as per the comment above, we can't do much about that. Fixes #3915.
This commit does two things: * It puts the "minimum supported matrix version" from v1.5 back down to v1.1. In other words, it is a partial revert of #3970. (Partial, because we don't need to update the tests.) We're doing this largely because #3970 was introduced without a suitable announcement and deprecation policy. We haven't yet decided if the js-sdk's spec support policy needs to change, or if we will re-introduce this change in future in a more graceful manner. * It increases the "maximum supported matrix version" from v1.5 up to v1.9. Previously, the two concepts were tied together, but as discussed at length in #3915 (comment), this is incorrect. Unfortunately, we have no real way of testing whether it is true that the js-sdk actually works with a server which supports *only* v1.9, but as per the comment above, we can't do much about that. Fixes #3915. (cherry picked from commit c885542)
Co-authored-by: Richard van der Hoff <[email protected]> Fixes #3915.
Something of a compainion to matrix-org/matrix-js-sdk#4014, but also covering the issues discussed at matrix-org/matrix-js-sdk#3915 (comment). In short: we should not reject servers which only implement recent versions of the spec. Doing so holds back the ecosystem by requiring all new servers to implement features that nobody actually uses any more.
Something of a compainion to matrix-org/matrix-js-sdk#4014, but also covering the issues discussed at matrix-org/matrix-js-sdk#3915 (comment). In short: we should not reject servers which only implement recent versions of the spec. Doing so holds back the ecosystem by requiring all new servers to implement features that nobody actually uses any more. (cherry picked from commit a8cc6cc)
The check at:
matrix-js-sdk/src/autodiscovery.ts
Line 220 in a749662
TLDR: Shouldnt this be a greater than rather than a "includes" check? The spec doesnt mandate a server to include any prior version.
See also https://matrix.to/#/!NasysSDfxKxZBzJJoE:matrix.org/$VA5KRc9PIeXmk0Sot2AAmU7UW6BrlcRkTGm9XROR-lA?via=matrix.org&via=element.io&via=envs.net for a discussion on this in the spec room. Nheko for example seems to check 1.1-1.5 as a range check instead.
The text was updated successfully, but these errors were encountered: