IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
878 stars 491 forks source link

Strict URL validation blocks an existing DOI URL #8974

Open pkiraly opened 2 years ago

pkiraly commented 2 years ago

What steps does it take to reproduce the issue? Create a dataset, and in the "Related Publication" section's URL enter "https://doi.org/10.1130/0016-7606(1981)92<448:praral>2.0.co;2" (without quotes). When you save the dataset, an error message will appear informs you that there is a validation error, the dataset can not be created (of modified). The error message near the data element says that the https://doi.org/10.1130/0016-7606(1981)92<448:praral>2.0.co;2 is not a valid URL.

This is a working URL, DOI is resolvable and points to an article published in The Geological Society of America's GSA Bulletin. The URL is strange, and maybe it does not fit the formal rules of URL according to W3C (I haven't check it), however DOI accepted it, and it is a resolvable one, so browsers, and tools can work with it.

To make it more stranger the problem occurred when the user wanted to modify the Terms, not the metadata, so I guess a previous version of Dataverse allowed to enter this data, but our current (5.10.1) doesn't. The general error message is irrelevant at this place, because it does not tell if the error occured in the metadata section, not in the terms section, and the terms section does not contain any further details. So the nature of error is not understandable at all from the user's perspective.

Which version of Dataverse are you using? 5.10.1

Any related open or closed issues to this bug report? I am not aware of that.

pdurbin commented 2 years ago

@pkiraly interesting. Thanks for the bug report. Can you replicate this via API?