Repository navigation
Handle missing entry types in shared databases - #17650
Merged
Siedlerchr merged 5 commits intoOct 31, 2026
Merged
Conversation
Contributor
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Siedlerchr
enabled auto-merge
October 31, 2026 15:06
…type' into fix/shared-db-missing-entry-type * siedlerchr/fix/shared-db-missing-entry-type: Require Escape to close dialogs, except the document viewer (JabRef#17175)
2 tasks done
Siedlerchr
disabled auto-merge
October 31, 2026 16:51
Siedlerchr
enabled auto-merge
October 31, 2026 16:51
Siedlerchr
disabled auto-merge
October 31, 2026 19:48
Collaborator
|
Successfully created backport PR for |
Siedlerchr
added a commit
to thesauravpoddar/forkedjabref
that referenced
this pull request
Oct 31, 2026
* upstream/main: Align add field controls in entry types preferences (JabRef#17501) Handle missing entry types in shared databases (JabRef#17650) document dialog font preference investigation (JabRef#17531) Require Escape to close dialogs, except the document viewer (JabRef#17175) Keep local groups whose shared write failed when pulling metadata (JabRef#17324) Fix to correctly preserve group selection upon switching library tabs (JabRef#17569) AI chat: delete and retry in message context menu (JabRef#17151) Show fulltext lookup progress for entries searched from the menu (JabRef#17224) Fix JabKit ignoring the avoid-overwrite setting (JabRef#17566) Warn about duplicate keybindings in preferences (JabRef#17331) Keep main table tooltip open (JabRef#17578) PR to resolve the issue automatically generate the summary git commit message in JabRef library (JabRef#17521) Do not re-draft a PR because of the Qodo review its ready event started (JabRef#17647) New Crowdin updates (JabRef#17646) Update dependency jbangdev/jbang to v0.143.0 (JabRef#17641)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shared database entry loading now falls back to
Miscwhen the stored entry type is null or blank, preventing malformed rows from crashing JabRef. The behavior is covered by PostgreSQL-backed tests and an OpenFastTrace requirement.Analogies: Like honey, the fallback smooths a rough edge; like chocolate, it makes an unpleasant database state easier to handle; like the moon, it keeps the shared database visible when its type is missing.
jabref-contrib-policy:4.2:reviewed:ok
Steps to test
entrytypeisNULLor contains only whitespace.Misc, preserves the entry, and logs a warning instead of failing.No screenshot is applicable because this is a backend-only robustness change with no new or changed UI.
Related issues and pull requests
Closes #15658
AI usage
Codex (model GPT-5), AIL2: used for repository investigation, implementation assistance, test creation, documentation updates, and verification. The contributor reviewed, understood, and takes full ownership of the submitted changes.
AI CHECKLIST.md walkthrough
1. Code self-review
Nullability and control flow
== null/!= nullchecks — JSpecify annotations (@NullMarked,@Nullable,@NonNull) used instead.Objects.requireNonNull(...)— nullability expressed via JSpecify annotations.@NullMarked(org.jspecify.annotations.NullMarked): no new classes.@NullMarked(org.jspecify.annotations.NullMarked): no new packages.Optionalconsumed withifPresent/ifPresentOrElse/map/orElseThrow— neverorElse(unusedValue)nor anisPresent()+get()block.StringUtil.isBlank(...)used instead ofs == null || s.isBlank().Exceptions
catch (Exception e)— only specific exceptions are caught.throw new RuntimeException(...)/IllegalStateException(...)— these tear down the whole application.LOGGER.info("...", e)), not concatenated into the message string.Style and idioms
BibEntryobjects built with withers (withField, notsetField).List.of()/Map.of()/Set.of(),Path.of(),SequencedCollection/SequencedSet, text blocks.Pattern.compile(...)constant, notString.matches(...).org.jabref.logic.util.BackgroundTask, notnew Thread().///) uses Markdown syntax, not JavaDoc inline tags:`code`instead of{@code},[ClassName]instead of{@link}.User-facing text
Localization.langin Java,%prefix in FXML): no new user-facing text.!; labels do not end with:: no new UI labels."...: %0"), not string concatenation: no localized text added.Security
text/htmlresponse: no HTML response changed.Tests
org.jabref.model/org.jabref.logichave added or updated tests.assertEquals), use plain JUnit asserts (not AssertJ), have no@DisplayName, do not catch exceptions, and use@TempDirinstead of manual temp directories.2. Verification commands
./gradlew :jablib:check(or./gradlew checkfor all modules)../gradlew checkstyleMain checkstyleTest checkstyleJmh../gradlew modernizer../gradlew --no-configuration-cache :rewriteDryRunreports no changes../gradlew javadoc.npx markdownlint-cli2 "docs/**/*.md" "*.md".npm ci && npm run textlintreports no misspellings.3. Documentation
docs/requirements/shared-database.md.4. Pull request
.github/PULL_REQUEST_TEMPLATE.md, every section filled.[x],[ ], or[/].gh pr create --body-file <file>.TODOplaceholder was used because issue Shared PostgreSQL database schema missing NOT NULL constraint on ENTRY TYPE column allows ghost entries. #15658 is identified.Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)