Layer post_save deletes links to external thumbnails / data #4739
Labels
minor
A low priority issue which might affect only some users and /or not the main functionality
needs further investigation
Issue or reason for specific behaviour needs further investigation
Milestone
Expected Behavior
When saving a layer, existing links should only be updated / deleted if required.
Actual Behavior
When saving a layer, links to external data such as thumbnails stored on a static file host are deleted.
Steps to Reproduce the Problem
Specifications
Reasons
After saving a layer, the
resourcebase_post_save
signal is triggered. It deletes any links that do not point to the same host as our GeoNode instance:geonode/geonode/base/models.py
Lines 1412 to 1424 in c999687
I'm not entirely sure why this behaviour exists, so I'm hesitant to submit a pull request. I think having external resources is a very valid scenario, but there may be a reason for deleting links to external hosts?
The text was updated successfully, but these errors were encountered: