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
PR #16232 introduced a BREAKING CHANGE even though it was labelled as a bugfix.
That PR adds the HTTP header x-content-type-options: nosniff which is a good security move, however it breaks installations that do not yet set the Content-Type. Had it been labelled a BREAKING CHANGE, I could have ensured that we were setting our MIME types properly before upgrading.
Steps to reproduce:
Upload an image to a chat room (or find a pre-existing one)
Click on the image title (not the image itself).
The image will load in a new tab.
Expected behavior:
The image to be displayed properly in the new browser tab.
Actual behavior:
The contents of the image file are displayed as plain text. e.g. a PNG file is displayed as
‰PNG
�
���
IHDR�������_�����
...
Server Setup Information:
Version of Rocket.Chat Server: 3.4.2
Operating System: Linux
Deployment Method: tar
Number of Running Instances: 15
DB Replicaset Oplog: enabled
NodeJS Version: 12.16.1
MongoDB Version: 4.0.18
Client Setup Information
Desktop App or Browser Version: Chrome 83.0.4103.116
Operating System: MacOS Catalina 10.15.5
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description:
PR #16232 introduced a BREAKING CHANGE even though it was labelled as a bugfix.
That PR adds the HTTP header
x-content-type-options: nosniff
which is a good security move, however it breaks installations that do not yet set the Content-Type. Had it been labelled a BREAKING CHANGE, I could have ensured that we were setting our MIME types properly before upgrading.Steps to reproduce:
Expected behavior:
The image to be displayed properly in the new browser tab.
Actual behavior:
The contents of the image file are displayed as plain text. e.g. a PNG file is displayed as
Server Setup Information:
Client Setup Information
The text was updated successfully, but these errors were encountered: