-
-
Notifications
You must be signed in to change notification settings - Fork 773
Non-Integer Thumbnail Sizes Break API Calls #5291
Copy link
Copy link
Closed
Labels
Description
Description of bug
Non-Integer Thumbnail Sizes Break API Calls
Steps to reproduce
- Try zooming out several times in your browser.
- Reload a DNN Page with the Assets page of the Persona Bar open.
- If the thumbnails fail to load, look in the network tab for the failing calls.
It is easy to reproduce the failed API calls with non-integer parameters: make an API call to http://{your dnn install}.dnndev.me/DnnImageHandler.ashx?mode=securefile&fileId={a file id}&MaxWidth=74.98&MaxHeight=42.01
Current behavior
API calls return with HTTP 500
Expected behavior
API parses the non-integer parameters and returns thumbnail based on rounded dimensions
Screenshots
See here https://docs.google.com/document/d/1DgWvWwNloNGleA7zpt6sqb4fT_W1V9gSwzmZhRBWKBg/edit
Error information
n/a
Additional context
n/a
Affected version
- 10.00.00 alpha build
- 09.11.00 release candidate
- 09.10.02 release candidate
- 09.10.01 latest supported release
Affected browser
- Chrome
- Firefox
- Safari
- Internet Explorer 11
- Microsoft Edge (Classic)
- Microsoft Edge Chromium
Reactions are currently unavailable