improve robustness of CrossRef metadata import via DOI: trailing whitespace causes URISyntaxException #9384
Labels
bug
tools: import-sources
Related to "Live Import" Sources feature, allowing import of content via external APIs.
Milestone
Bug Description
The method
SearchByIdCallable.call()
cannot handle queries that contain trailing whitespaces, e.g. the search query10.1111/jan.12345
(URL/import-external?entity=Publication&sourceId=crossref&query=10.1111%2Fjan.12345%20
) results in ajava.net.URISyntaxException
.The exception message is:
Illegal character in path at index 59: https://api.crossref.org/works/filter=doi:10.1111/jan.12345
This error is caused by
The text was updated successfully, but these errors were encountered: