Jaovitosr/Chatbot

Unable to search doi directly in web search

开放

#13 创建于 2023年9月14日

 (1 条评论) (0 个反应) (0 位负责人) (0 个派生)auto 404
fetchergood first issue

仓库指标

星标
 (0 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

From jabref created by Turgon-Aran-Gondolin: JabRef/jabref#9674

JabRef version

5.9 (latest release)

Operating system

Windows

Details on version and operating system

Windows 10 22H2

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Turn on web search panel, select INSPIRE for example
  2. search a doi, i.e. 10.1007/JHEP02(2023)082 without using quotes
  3. the search failed with an unhandled exception.
  4. The exception goes away if surround the doi with quotes

Appendix

I think the problem is that the search box is unable to handle the slash "/". Either escaping "/" or adding quotes would solve it. But a more general solution is preferred. ...

org.jabref.logic.importer.FetcherException: An error occurred when parsing the query
	at org.jabref@5.10.236/org.jabref.logic.importer.SearchBasedFetcher.performSearch(Unknown Source)
	at org.jabref@5.10.236/org.jabref.gui.importer.fetcher.WebSearchPaneViewModel.lambda$search$3(Unknown Source)
	at org.jabref@5.10.236/org.jabref.gui.util.BackgroundTask$1.call(Unknown Source)
	at org.jabref@5.10.236/org.jabref.gui.util.DefaultTaskExecutor$1.call(Unknown Source)
	at org.jabref.merged.module@5.10.236/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

贡献者指南