You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
Hi, a recent change in the attachment description at the Element client level "Remove Redundant mimetype Fields" broke the use of the content scanner in encrypted rooms.
Any scan request fails with the following error because the mimetype is missing
{
"info" : "Client error: File type not supported",
"reason" : "MCS_MEDIA_NOT_CLEAN"
}
The mimetype field has been removed from the content.file description, because it was already mentioned in the content.info(see here.
Suggestion: consider as optional the mimetype in the file description at the content scanner level here. The mimetype is currently checked from the decrypted content too
The text was updated successfully, but these errors were encountered:
It's worth noting that the client will independently send the content.file dictionary from the m.room.message event. Thus the content scanner never gets access to the specced content.info.mimetype field, only content.file.mimetype.
We could only optionally consider content.file.mimetype, yet I'd actually go as far to say that we should just completely ignore content.file.mimetype altogether, as it's not specced.
As @giomfo says, the mimetype of the actual file is eventually checked via magic bytes, regardless of what the client claims.
Hi, a recent change in the attachment description at the Element client level "Remove Redundant mimetype Fields" broke the use of the content scanner in encrypted rooms.
Any scan request fails with the following error because the
mimetype
is missingThe mimetype field has been removed from the
content.file
description, because it was already mentioned in thecontent.info
(see here.Suggestion: consider as optional the mimetype in the file description at the content scanner level here. The mimetype is currently checked from the decrypted content too
The text was updated successfully, but these errors were encountered: