Skip to content

Non-Integer Thumbnail Sizes Break API Calls #5291

@v-karbovnichy

Description

@v-karbovnichy

Description of bug

Non-Integer Thumbnail Sizes Break API Calls

Steps to reproduce

  1. Try zooming out several times in your browser.
  2. Reload a DNN Page with the Assets page of the Persona Bar open.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions