-
Notifications
You must be signed in to change notification settings - Fork 384
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
MSC2582: Remove mimetype from EncryptedFile object #2582
MSC2582: Remove mimetype from EncryptedFile object #2582
Conversation
Related PR: #2581 |
Arbitrarily blocking this on someone commenting on #2581 |
(per #matrix-spec: this PR is required to remove the attribute - unblocked). |
|
||
|
||
## Potential issues | ||
Some clients might depend on this? |
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.
TODO: check client support
(I will update this list as we determine what changes are needed for clients.)
(in alphabetical order)
- fluffychat
- gomuks
- nheko
- nio SDK
- weechat-matrix (does not seem to use anything)
- mirage
-
RiotElement Android -
RiotElement iOS -
RiotElement Web- the
decryptFile
function only gets passed thefile
property from the contents. To fix this, we'd need to either pass both thefile
andinfo
properties, or the entirecontents
.
- the
- rust sdk (does not seem to do any mimetype processing on its own)
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.
Fluffychat doesn't seem to depend on this, either
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.
Element Android dropped this field in element-hq/element-android#3273. Element iOS in matrix-org/matrix-ios-sdk#1125. The open issue for Element Web is element-hq/element-web#17145.
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.
Element no longer uses this field, and uses the mimetype from the info field: matrix-org/matrix-react-sdk#6591 (It will still send the field for now, but that's less important for this MSC)
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.
@tulir do you know what gomuks does? Also, any of your bridges.
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.
My libraries don't support that field at all
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.
OK, so it seems like all clients don't use the undocumented field any more, so I think it this potential issue is no longer an issue.
|
||
## Proposal | ||
The example in the spec currently lists `mimetype` in the examples for `EncryptedFile` but not in | ||
the object definition. As that is duplicate information of the `info` block of file events, the |
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.
Just to note that the EncryptedFile
appears twice in the examples: in the file
property (top-level) and it info
.thumbnail_file
. mimetype
is given in both places.
the mimetype in EncryptedFile is undocumented and redundant. see matrix-org/matrix-spec-proposals#2582
@mscbot fcp merge |
Team member @uhoreg has proposed to merge this. The next step is review by the rest of the tagged people: 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 is now entering its final comment period, as per the review above. 🔔 |
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
Just committed the two suggestions 👍 |
The final comment period, with a disposition to merge, as per the review above, is now complete. |
* add proposal * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <hubert@uhoreg.ca> * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <hubert@uhoreg.ca> Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
* add proposal * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <hubert@uhoreg.ca> * Update proposals/2582-remove-mimetype-from-encrypted-file.md Co-authored-by: Hubert Chathi <hubert@uhoreg.ca> Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
Spec PR: #3412 |
Merged 🎉 |
Rendered
Signed-off-by: Sorunome mail@sorunome.de
Implementations:
mimetype
Fields matrix-ios-sdk#1125Link to relevant spec: https://spec.matrix.org/unstable/client-server-api/#extensions-to-mroommessage-msgtypes