Skip to content
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

Improved error message when downloading a file fails #9826 #9838

Closed
wants to merge 13 commits into from

Conversation

yerraga
Copy link

@yerraga yerraga commented May 4, 2023

Fixes #9826

Compulsory checks

Preview Give feedback

@koppor
Copy link
Member

koppor commented May 4, 2023

@yerraga Thank you for the contribution. Can you please fix checkstyle? See https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-13-code-style.html for details. Please also use {} at the logger (instead of string concatenation)

I think, the whole thing should be tested. Can you dive into WireMock to setup mocking the remote servers - so that each exception path in LinkedFileViewModel is tested? https://wiremock.org/docs/junit-jupiter/

@koppor koppor marked this pull request as draft May 4, 2023 07:26
@ThiloteE
Copy link
Member

ThiloteE commented May 4, 2023

To ease organizational workflows I have linked the pull-request to the issue with syntax as described in https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

Linking a pull request to an issue using a keyword

You can link a pull request to an issue by using a supported keyword in the pull request's description or in a commit message. The pull request must be on the default branch.

  • close
  • closes
  • closed
  • fix
  • fixes
  • fixed
  • resolve
  • resolves
  • resolved

If you use a keyword to reference a pull request comment in another pull request, the pull requests will be linked. Merging the referencing pull request also closes the referenced pull request.

The syntax for closing keywords depends on whether the issue is in the same repository as the pull request.

} else if (ex instanceof FetcherServerException) {
FetcherServerException serverException = (FetcherServerException) ex;
int statusCode = serverException.getStatusCode();
dialogService.showErrorDialogAndWait(Localization.lang("Error downloading from URL"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second part is also shown to the user
. Thus, that needs to be localized too. It is OK for me to include the server error here.

@Siedlerchr
Copy link
Member

What is the status here? Are you planning to fix the compile errors to get it working?

@calixtus
Copy link
Member

Closing this issue due to inactivity 💤
Please reopen a PR if you intend to continue on this issue. We really liked your idea and draft.

@calixtus calixtus closed this Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message when downloading a file fails
5 participants