DOI import wizard: misleading error with whitespace input #368
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/shacl-vue#368
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'd argue that most DOIs are C&P'ed, not typed. It is therefore not unlikely to have leading or trailing whitespace in the field input of the DOI import wizard. In such cases, a "NetworkError" is reported to the user -- which is a complicated way of saying that no such record could be retrieved.
DOI Fetch Error: TypeError: NetworkError when attempting to fetch resource.Ideally, this error is C&P anticipated and the input is sanitized by removing trailing AND leading whitespace. This appears to be already the case for trailing whitespace. I believe that no valid DOI has any surrounding whitespace, so this should be fine and useful in all cases.