Skip to content

Error recreating Links via set_resource_default_links #13954

@etj

Description

@etj

Expected Behavior

When something changes in a Layer or a configuration, the Links should be rebuilt properly, and the old links should be removed.

Actual Behavior

When something changes in the URL, the Links are duplicated with the new URL, not replaced.

Additional details

Problem relies in the filter condition at https://github.com/GeoNode/geonode/blob/5.0.1/geonode/utils.py#L1303-L1321
The URL should not be part of the filter criteria. This problem is at least in the WFS and in the WCS resources; the whole method has to be well checked.

Pls note that the WMS links are properly recreated, because the filtering here is only by resource and link.name:
https://github.com/GeoNode/geonode/blob/5.0.1/geonode/utils.py#L1276-L1283

Specifications

  • GeoNode version: at least 4, 5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions