Skip to content

Dataset Thumbnail 404 Not Found - Broken Link after File Deletion #277

@taywll252

Description

@taywll252

Describe the bug
Short: Dataset thumbnail image HTTP 404 Not Found after image file deleted from dataset (thumbnail should have been removed but was not).

Long: After creating a new dataset and uploading files (nested in a variety of folders and subfolders), the dataset was automatically given a thumbnail of an extracted image file preview contained within the dataset. Later, many files were removed from the dataset, including all image files. File deletion was performed in a Google Chrome browser with the Clowder UI. Following deletion of files, the dataset's thumbnail was not removed (expected behavior being it should be removed when the image files were deleted). Instead, a missing image link with alt-text remained. Inspecting the image showed a link to a fileThumbnail (.com/fileThumbnail/{thumbnail_id}), which produced a HTTP 404 error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new dataset
  2. Upload files inside folders and nested folders (with an image file somewhere)
  3. Observe if the dataset receives a thumbnail (expected)
  4. Delete image files
  5. Observe if the dataset no longer has a thumbnail (expected behavior) or a missing thumbnail link remains (unexpected behavior)
    Expected behavior
    Datasets may gain a thumbnail of an unloaded image file that has a preview extracted. Datasets should have their thumbnail removed if the image file is deleted (thumbnail also deleted).

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Google Chrome (v93.0.4577.82) and Edge (v93.0.961.52)
  • Clowder Version: 1.18.1#642 branch:master sha1:3e27a5411234172a69fb446e103d1e70b95398e4

Additional context
The dataset, folders, and files were all created/uploaded using Clowder APIs. File deletion was performed in-browser. Image preview extraction was automatically initiated upon file upload (default behavior), not initiated by the user manually.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions