-
-
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
Invalid DOI should not show "Connection error" #8127
Comments
Hello, is this issue free? I can work on this issue. |
Sure! Go ahead! |
@TheDeveloperDino You can to test-driven development. A start can be #8124. I think, one should add test cases to |
Okey. |
@TheDeveloperDino, are you still working on this? @koppor , I tried to copy and paste the DOI as described above in Windows 10 but there is no such special character at the end, and no error result. However, I could produce the error if I use invalid characters like question mark at the end of the DOI. I would like to re-define this issue as one caused by any trailing invalid characters at the end of the DOI, and I would like to volunteer to fix it if @TheDeveloperDino is no longer working on it |
Hi, I am a cs student, I repeated the issue in both Windows 10 and Linux Ubuntn OS 20.04. I fixed this issue by adding a method to automatically remove non-valid characters at the end of DOI string and let the DOI constructor call this method. I already verified the solution using both Windows 10 and Linux. I also wrote a ParameterizedTest for the method I created. I just submitted a PR (#8215) for review. |
@jiezheng5, this is not really in the spirit of open source contribution. You requested to work on this issue after me and we have not heard from @TheDeveloperDino. I have also started working on the issue. |
I actually started working on this issue 2 weeks ago. Then I saw your request, I thought maybe I should also post my progress. Do we have to first get permission before we can work on the open issues? This is my first time contributing to open source, I am sorry that if I have done something wrong. |
Example DOI for this behavior: When a user fetches the DOI data, "Connection error" is returned. The improved implementation should check for Side note: The DOI is listed at https://vdf.ch/studienarbeiten-e-book.html - and thus users may think, it is a valid one. However, the publisher seems not to have registered it at the official DOI registry. |
@mrcstan Could you add a test case to |
This is actually a good idea. We also outlined that at https://devdocs.jabref.org/contributing#create-a-pull-request:
No, just start working. The general reason is that the probability at 500+ opened issues that two volunteers start working on the same issue at the same time is nearly 0. Maybe in the concrete setting, this issue was a) tagged as "good first issue" and b) at the very beginning of the list. I am sorry that we have this situation now. I reviewed #8215 and think, it would be good to see an alternative solution. Proposal:
Would that be OK?
Welcome to the open source development world!
You "just" hit an edge case in the open source world. We are now working to resolve this case. Meanwhile, you could work on another issue, maybe koppor#534? |
This PR has two parts:
|
… into fix-for-issue-JabRef#8127 Rebased with main after pushing
* upstream/main: (181 commits) Add of ADRs 22 and 23 (#8256) [Bot] Update CSL styles (#8245) Replace styfle/cancel-workflow-action@0.9.1 by GitHub's "concurrency" feature (#8243) Bump gittools/actions from 0.9.10 to 0.9.11 (#8248) Bump commons-cli from 1.4 to 1.5.0 (#8250) Bump byte-buddy-parent from 1.12.0 to 1.12.1 (#8249) Bump antlr4 from 4.9.2 to 4.9.3 (#8251) Bump archunit-junit5-api from 0.21.0 to 0.22.0 (#8252) Fix search: NOT binds more than AND (#8241) New Crowdin updates (#8240) Make PdfGrobiImporterTest as FetcherTest Oobranch g : add actions (#7792) Fix mixed CRLF / CR (#8238) Fix "Library has changed externally" with CRLF markers (#8239) Fix for issue 8198, 8133 (#8229) Added more unit tests in AuthorTest (#8214) Add confirmation dialog for empty entries in JabRef (#8218) Fix entry editor column visibility (#8232) Use regexp to remove non-ASCII characters from DOI and inform user when data for valid DOI does not exist #8127 (#8228) Fix exception for search flags (#8237) ...
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
Windows 10
Checked with the latest development build
Steps to reproduce the behaviour
Expected behavior:
Appendix
No response
The text was updated successfully, but these errors were encountered: