Skip to content

Add placeholder image thumbnail if image loading error #20298

@FloRinke

Description

@FloRinke

NetBox Edition

NetBox Community

NetBox Version

v4.4.0

Python Version

3.12

Steps to Reproduce

  1. Have Cache-Redis without disk persistence (in my case: default directory write-protected by Kubernetes)
  2. Attach Image to a suitable object (in my case a location)
  3. Go to tab "Images"

Expected Behavior

See an empty box or an error placeholder ("Thumbnail cannot be generated") and a clickable link to the image resource
Image

Observed Behavior

The image file name is shown as text, no preview, no clickable link
Image

In the DOM it's apparent all Tags related to the Thumbnail are missing:
Image

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions