Skip to content

Saving custom entry type with blank name #15103

@pluto-han

Description

@pluto-han

JabRef version

Latest development branch build (please note build date below)

Operating system

macOS

Details on version and operating system

macOS 15.5

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

Follow https://docs.jabref.org/setup/customentrytypes

How to reproduce

  1. Type some spaces and press enter
Image
  1. Notice that an empty entry type was created
Image
  1. Press save, preferences are recorded.

Result
An empty entry type was created and saved, which should not be.

Image

Possible cause
'Press enter' action calls CustomEntryTypesTabViewModel.addNewCustomEntryType() directly, while 'Press + button' calls CustomEntryTypesTab.addEntryType(), so any validation implemented in addEntryType() is bypassed when adding entry type via 'press enter'.

This issue is very related to #15074 i am currently working on. Could you please assign me to this issue so that i can fix this as well?

Appendix

...

Log File
Paste an excerpt of your log file here

Metadata

Metadata

Assignees

Labels

📍 AssignedAssigned by assign-issue-action (or manually assigned)

Type

No fields configured for bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions