Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.3.X, Master
-
7.3.x, 7.2.x, 7.1.x, 7.0.x
-
Committed
-
1
-
3
-
LIMA | QA Sprint 17
-
Default
Description
When requesting a image thumbnail, If it doesn't exists, WebServerServlet returns a empty image with 200 code instead of a 404 error
The customer complains that returning 200 code can cause problems to the CDN and other elements, as they are caching them unless a error code is returned.
It can also cause problems to the user browsers, as we send a wrong image that cannot be rendered.
Steps to reproduce
- Upload a image to the documents and media section
- Open the image, click on the
button on the upper right side of the page
- Copy the "Latest Version URL" URL
- Append &imageThumbnail=1 to the end of the URL and open it in a different tab
- The thumbnail will be displayed correctly
- Go to Control Panel => Adaptive Media
- Deactivate all the defined image resolutions
- Delete all the defined image resolutions
- Open again the URL with the &imageThumbnail=1 parameter in a different browser (the image is cached in the browser)
- Expected behavior: An 404 error "The requested resource could not be found." is displayed
- Wrong behavior:
- Firefox returns a "The image xxx cannot be displayed because it contains errors."
- Chrome returns a empty image
- Firefox returns a "The image xxx cannot be displayed because it contains errors."
- Expected behavior: An 404 error "The requested resource could not be found." is displayed
Attachments
Issue Links
- causes
-
LPS-145132 Team Extranet and Masterclass Thumbnails are not displayed
- Closed
-
LPS-145189 SVG can not be previewed
- Closed