Details
-
Bug
-
Resolution: Fixed
-
High
-
4.3, 5.0
-
None
Description
Symptoms
When visiting a URL for an attachment that does not exist, the server returns a response that the browser cannot handle.
Specifically, the 404 response contains the "Content-Encoding: gzip" header, but the response body is not actually gzip-encoded. The browser fails to render the 404 page and instead renders its own error message complaining about bad encoding. This also appears to affect 500 responses.
This can be reproduced with Chrome, Safari and Firefox. See attactment for a screenshot from Firefox.
An example URL to trigger this is
http://localhost:8080/confluence/download/attachments/INVALIDNUMBER/43434/test.txt
It would appear that this only happens when going directly to Confluence. If a proxy server sits in between, it seems to massage the response to fix the inconsistent encoding.
Workaround
Disable compression in Confluence:
- Browse > Confluence Admin > General Configuration
- Edit
- Uncheck "Compress HTTP Responses"
Attachments
Issue Links
- relates to
-
CSP-92751 Loading...