dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

Creating a new metadata schema with a namespace containing a period throws an error

Open bram-atmire opened this issue 1 year ago • 3 comments

Describe the bug It is impossible to create a new metadata schema from the UI when the namespace fields contains a period. Periods are very common in the namespace field as typical values used there, are uris.

To Reproduce Steps to reproduce the behavior:

  1. Go to /admin/registries/metadata
  2. Try to add a new metadata schema with a namespace that contains a period, for example the value "datacite.org"

Expected behavior Periods should be accepted in namespace values for metadata schemas.

Related work We've introduced protection against creating metadata fields that contain a period in the name in here: https://github.com/DSpace/dspace-angular/pull/2177

It seems like this "protection" is inadvertently also applied on the namespace field in the creation dialog for a new namespace.

bram-atmire avatar Feb 14 '24 15:02 bram-atmire

Moving this to dspace-angular as it sounds like a frontend bug accidentally caused by https://github.com/DSpace/dspace-angular/pull/2177 ?

Once it's moved, I'll add this to the 7.6.x board in search of a volunteer.

tdonohue avatar Feb 14 '24 17:02 tdonohue

Atmire would like to claim this issue

alexandrevryghem avatar Feb 15 '24 14:02 alexandrevryghem

Thanks @alexandrevryghem ! Assigning this to you for you/Atmire to work on.

tdonohue avatar Feb 15 '24 14:02 tdonohue