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

Fix importing of custom entry types with duplicate fields #11132

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Apr 2, 2024

Fixes #11127

This is a fix for the exception introduced in #11013 (review)

The main culprit is that we did not do a migration to remove duplicate fields

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 April 2, 2024 19:22
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 2, 2024
koppor
koppor previously approved these changes Apr 2, 2024
@koppor
Copy link
Member

koppor commented Apr 2, 2024

Nice find!

Review comment was #11013 (review)

What we overlooked is the entry type customization by users. There should be no crash of JabRef when there is an inconsistent configuration.

Copy link
Contributor

github-actions bot commented Apr 2, 2024

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

@Siedlerchr Siedlerchr disabled auto-merge April 3, 2024 14:31
@Siedlerchr Siedlerchr merged commit e08de39 into main Apr 3, 2024
20 checks passed
@Siedlerchr Siedlerchr deleted the fixImportCustomEntryTypes branch April 3, 2024 14:31
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.

Custom entry types might crash JabRef on start
2 participants