core-geonetwork
core-geonetwork copied to clipboard
Adding an associated resource to an existing one create two links instead of one
Describe the bug When adding a new associated resource (also on the calalog) to an existing resource, Geonetwork creates two duplicated links instead of one, the second being considered a link to an external catalog. Yet the two links have exactly the same URLs. Also, deleting one of the link removes both.
To Reproduce
- Edit the metadata of a resource
- Click on "Add associated resource"
- Add a relation to another resource from the catalog (tested with "source dataset" and "other resource").
- The "Associated resources" panel show two links to that resource instead of one
Expected behavior Only a single link to the associated resource should be created.
Screenshots
E.g. https://catalog.geohistoricaldata.org/geonetwork/srv/eng/catalog.search#/metadata/6a48afcf-6bdc-4880-b2d6-dd8e557253c2
Link to "Verniquet File" : https://catalog.geohistoricaldata.org/geonetwork/srv/api/records/697871b7-f663-4e0e-8785-c48ecfe05515
Link to "Verniquet File [external catalog] : https://catalog.geohistoricaldata.org/geonetwork/srv/api/records/697871b7-f663-4e0e-8785-c48ecfe05515
Desktop (please complete the following information):
- Firefox 102.x
- GeoNetwork 4.0.5 from the Docker image
geonetwork:4.0.5
Can't reproduce the issue on main. I don't remember any PR fixing that. Could you upgrade to 4.2.0 ?
@HueyNemud Did the upgrade help? If so please close this issue. Thanks.
@ThomasJunk Yes, I couldn't figure out the cause of this problem, but it magically disappeared in a later update. Closing this issue now, thank you for the reminder