You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket describes a blocker issue discovered during testing of #4814 and DSpace/DSpace#11549
As a blocker, it must be resolved prior to 10.0 (its assigned milestone)
Describe the bug
In testing of #4814 and DSpace/DSpace#11549, we discovered that it's possible to create duplicate "Custom URLs" by editing the dspace.customurl metadata value from the "Administer -> Metadata" screen.
When duplicate "Custom URLs" are created, both Entities using that Custom URL will fail to load in the User Interface and instead you'll see this message:
When both items are in that state, they can only be fixed by logging in as an Administrator and going straight to the "Edit" page for the item by typing the full URL in your browser window, e.g. http://localhost:4000/entities/publications/[uuid]/edit From there, you'd have to edit the dspace.customurl metadata field for one item to non-duplicative value.
To Reproduce
Steps to reproduce the behavior:
Create two new Publications with the Custom URL feature enabled. By default, they will have different Custom URLs, even if their dc.title field is identical. Note down the two custom URL values.
Login as an Admin
Visit one of those Publications and Administer it.
Go to the "Metadata" tab.
Edit the dspace.customurl metadata field to set it to the same Custom URL as the other Publication.
Save the value.
Go back to either Publication's page. It will no longer load and you'll see the "Error fetching item" message.
Expected behavior
It should not be possible to duplicate Custom URLs. This can be fixed in either of these two ways:
Either validation should be added to the "Administer -> Metadata" page to ensure that a duplicate dspace.customurl value cannot be saved.
Or, alternatively, it should not be possible to edit the dspace.customurl (or dspace.customurl.old) metadata fields from the "Administer -> Metadata" page.
This might be achieved similar to how Virtual Metadata fields are displayed on the "Metadata" tab but are not editable there.
Warning
This ticket describes a blocker issue discovered during testing of #4814 and DSpace/DSpace#11549
As a blocker, it must be resolved prior to 10.0 (its assigned milestone)
Describe the bug
In testing of #4814 and DSpace/DSpace#11549, we discovered that it's possible to create duplicate "Custom URLs" by editing the
dspace.customurlmetadata value from the "Administer -> Metadata" screen.When duplicate "Custom URLs" are created, both Entities using that Custom URL will fail to load in the User Interface and instead you'll see this message:
When both items are in that state, they can only be fixed by logging in as an Administrator and going straight to the "Edit" page for the item by typing the full URL in your browser window, e.g. http://localhost:4000/entities/publications/[uuid]/edit From there, you'd have to edit the
dspace.customurlmetadata field for one item to non-duplicative value.To Reproduce
Steps to reproduce the behavior:
dc.titlefield is identical. Note down the two custom URL values.dspace.customurlmetadata field to set it to the same Custom URL as the other Publication.Expected behavior
It should not be possible to duplicate Custom URLs. This can be fixed in either of these two ways:
dspace.customurlvalue cannot be saved.dspace.customurl(ordspace.customurl.old) metadata fields from the "Administer -> Metadata" page.Related work
#4814 and DSpace/DSpace#11549