Skip to content

Bad thumbnail handling #12423

Open
Open
@etj

Description

@etj

Expected Behavior

  • A single thumbnail file should be generated when a Resource is created.
  • The thumbnail file should be removed when the Resource is deleted.

Actual Behavior

When a Document is created, two files are created, e.g.:

-rw-r--r-- 1 root root 17135 Jul 16 07:11 document-886bda39-8560-40b2-b9a0-66104147b254-thumb-e5a132a7-57b7-43d2-bcf0-52d4af6fe3e0.jpg
-rw-r--r-- 1 root root 17135 Jul 16 07:11 document-886bda39-8560-40b2-b9a0-66104147b254-thumb-e5a132a7-57b7-43d2-bcf0-52d4af6fe3e0_3ClS2qX.jpg

When the Document is removed, the files are kept.

Other Resource types should be checked.

Steps to Reproduce the Problem

  1. Create a Document
  2. Check the thumbnail dir for files containing the resource UUID
  3. Remove the Document
  4. Check if the files still exist (they do)

Specifications

  • GeoNode version: master (as of 20240716)

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions