Skip to content

Saving custom entry type with same name overwrites existing entry type #15074

@ThiloteE

Description

@ThiloteE

JabRef version

6.0-alpha.4

Operating system

Windows

Details on version and operating system

No response

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 "Book" and press the + button
    Image
  2. Notice there are now two entrytypes with the name of "Book".
  3. Press "save"

Result:

The custom entry type "Book" overwrites the standardtype "Book", hence instead of two books, there will only be one book and all fields will be gone.
Image

Solution

At the very least, if users type in the field for custom entry types, they should not be able to press the + button, if this entrytype already exists. There are should be a tiny tooltip that tells the user duplicate entry types are not supported. Something along the lines of "It is not possible to have two entry types with the same name".

I am not quite sure yet, what implications this has for migrating from old versions of JabRef to new Versions of JabRef with updated entrytypes or even what happens, if users with custom entry types open a library with unique entry types.

Appendix

...

Log File
Paste an excerpt of your log file here

Metadata

Metadata

Assignees

Labels

good first issueAn issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)

Type

No fields configured for bug.

Projects

Status
Done
Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions