Skip to content

Conversation

@Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Sep 19, 2024

Fixes #4913

We encountered a 301 redirect and thus content type was html

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@Siedlerchr Siedlerchr requested a review from koppor September 19, 2024 18:50
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 19, 2024
@koppor
Copy link
Member

koppor commented Sep 19, 2024

Tested with 1207.0408v1. Directly downloads the PDF when fetching the entry. Nice.

github-actions[bot]

This comment was marked as resolved.

urlToCheck = locationHeader;
}
// while loop, because there could be multiple redirects
} while (StringUtil.isNullOrEmpty(locationHeader));
Copy link
Member Author

Choose a reason for hiding this comment

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

we need to set a limit to max redirects ...

@koppor
Copy link
Member

koppor commented Sep 20, 2024

I am kind of fighting with Wiremock... -- currently getting 404 at org.jabref.gui.linkedfile.DownloadLinkedFileActionTest#removesHtmlFileLink

…xivHtmlImport

* upstream/fixArxivHtmlImport:
  Fix condition
  Improve test names
  Use Wiremock instead of real endpoint
  Simplyfiy code
  Fix conditions
…xArxivHtmlImport

* 'fixArxivHtmlImport' of github.com:JabRef/jabref:
  Fix focus for keywords and crossref fields (#11792)
  Fix ai chat not on fx thread (#11796)
  [AI] Add more uses statements (#11788)
  Update djl api dependency (#11787)
  Improve pdf content parser for DOIs (#11782)
  minor refactor to JabRefDialogService (#11767)
  Add more OS-dependent context to panel freeze dev documentation. (#11781)
@Siedlerchr
Copy link
Member Author

Isidore fetcher returns two different entries... and IEEE gives bad gateway

@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2024

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@Siedlerchr Siedlerchr added this pull request to the merge queue Sep 20, 2024
Merged via the queue into main with commit 5ac788c Sep 20, 2024
1 check passed
@Siedlerchr Siedlerchr deleted the fixArxivHtmlImport branch September 20, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downloads from the arXiv are marked as HTML files instead of PDF

4 participants