-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception for DOI search in case DOI contains masked characters #8787
Comments
If #8743 is fixed, this will just show that no data could be retrieved for that DOI, which is also not ideal. |
Hello! I am a junior undergraduate cs student. Seems that this issue is meaningful and not very complicated so I wanna have a try. Hope you can give me the chance. By the way, Can you give me more information about this? like the expected results after repair or what I can do for this issue. Thank you! |
Thanks @fly-ing-fish for your interest in this. I assume that somebody from the team (like @ThiloteE) will soon tell you more. Personally, I am not entirely sure what to do in those cases. First, I am not entirely sure, whether the entry is conforming to BibTeX standard. Assuming it is, then JabRef should either just understand the masked characters and replace them internally for the DOI lookup, or it can notify the user about it and suggest modifying ("fixing" this entry (in case it is decided that this formatting is not compliant with JabRef internal standards). |
@fly-ing-fish It may be easier for you if you choose one of the issues tagged as |
@mlep Well, there are still enough issues... And even more unfinished pull requests for those... (We really need a random shuffle function for github issues so that not always the latest opened issues get picked) |
@fly-ing-fish Thank you once again for your last contribution and the introduction of the I agree tackling "good first issues" will be good. Of course, since you already have contributed once, maybe "good first issues" is not challenging enough for you. If you think so, you could have a look at the projects page also, but keep in mind that those might be of larger scope and require more work, thought and commitment :-) |
@ThiloteE This is not an exact duplicate. The exception originates from different causes, also one is talking about handling the exception, the other is about handling the masking. But both issues might have the same solution in common (but not necessarily), which is why I created this as a separate issue. In case you still think this should be treated as a duplicate, then I suggest editing the scope of the other issue (to cover all masked characters in a bib file, which might require different solutions depending on the case). Let me know how to proceed. |
You are right. The error is different. Excuse my trigger happy fingers pushing buttons too fast.
|
But this is also caused by Citavi export, right? |
No problem, the issues are easy to mix up, I myself needed to think a bit about it when creating them. Yes, both are caused by Citavi export. And there also might be a shared solution (at least to parts of them), but not necessarily. |
Okay, solution would be two steps:
|
According to step1, Seems that URLDecoder.decode() can handle the problem. and According to step2, another test class may named According to step3, seems that the dialog box concise enough? If it is fine, I may try to start a PR. |
Regarding step 3: That should be solved by #8743. |
@fly-ing-fish That's a good start. Additionally, I would also integrate this directly into the DOI.parse method as well, so that even if the user has a DOI in that format, fetching will work. And @claell is right, for the message the other issue. We try to be a bit more user-friendly. The exception should not be shown to the user in the dialog, but instead just be logged. |
add " We fixed an issue that there are exceptions for DOI search in case DOI contains masked characters. [JabRef#8787](JabRef#8787) " in unreleased fixed
Co-authored-by: Christoph <[email protected]>
JabRef version
5.6 (latest release)
Operating system
Windows
Details on version and operating system
Windows 10
Checked with the latest development build
Steps to reproduce the behaviour
Similar issue to #8786 in case of a DOI search (masked underscore) in DOI.
Appendix
...
Log File
The text was updated successfully, but these errors were encountered: