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

Custom entry import dialog only appears on broken files and is empty with inherited JabRef settings #5332

Closed
sauliusg opened this issue Sep 19, 2019 · 0 comments · Fixed by #5525
Milestone

Comments

@sauliusg
Copy link
Contributor

sauliusg commented Sep 19, 2019

JabRef version 5.0-dev (commit db96f88 master) on Ubuntu-16.04 x86_64

If a broken bibtex file that contains correct custom entry types is presented to JabRef, the "Custom Entry type dialogue appears, and it is different depending on whether JabRef settings are created anew or if they are inherited from the different version.

  • If the settings are inherited from the 4.0 JabRef version (my setting file is attached
    jabref-settings-2019-09-19.zip), and a broaken file is opened, an empty dialogue window is presented for the custom entry import;

  • If the settings are created anew with JabRef 5.0-dev, the broken file causes a dialogue with reasonable content to be displayed;

  • If a correct bibtex file is presented (regardless of the settings), the import dialogue is not presented and the settings are silently imported into both old and new settings.

Steps to reproduce the behavior:

  1. Back up your old settings, or remove them if you have a backup:
    mkdir -p ~/wastebasket; if [ -d ~/wastebasket/jabref ]; then ( set -x; rm -rf ~/.java/.userPrefs/org/jabref ); else mv -v ~/.java/.userPrefs/org/jabref ~/wastebasket; fi
  2. Unpack the JabRef settings from JabRef 4.0:
    ( cd; unzip ~/jabref-settings-2019-09-19.zip )
  3. Start the new JabRef in the Git working copy:
    build/image/bin/JabRefMain test-entry-types-broken.bib &
    The first dialogue that appears, correctly reports the error in the file; the second, however, looks strange:
    Screenshot from 2019-09-19 17-48-04
  4. Remove the JabRf setting files:
    rm -rf ~/.java/.userPrefs/org/jabref
  5. Without restoring the old settings, start the 5.0dev JabRef:
    build/image/bin/JabRefMain test-entry-types-broken.bib &
    The first dialogue on startup is again the expected error message, and the second is a reasonably filled "Custom entry types" dialogue:
    Screenshot from 2019-09-19 17-52-29
  6. If a correct bibtex file is imported:
    build/image/bin/JabRefMain test-entry-types.bib &
    no "Custom entry types" appears, regardless of whether the ~/.java/.userPrefs/org/jabref directory exists, an if it exists whether it is from JabRef 4.0 or JabRef 5.0.

From the user's perspective, the "Custom entry types" in step 3. seems incorrect, and the behaviour in steps 5. and 6. seems inconsistent; one would expect that the "Custom entry types" dialogue either always appears or is always by-passed.

The mentioned bibtex files with custom entry types are here:
test-entry-types.zip

@tobiasdiez tobiasdiez added this to the v5.0 milestone Sep 27, 2019
tobiasdiez added a commit that referenced this issue Oct 27, 2019
Fixes #5332. Problem was that the dialog was shown whenever the library contained customized entry types, even if the customizations were equal to the customization stored in the global preferences. A bit of refactoring/renaming along the way.
koppor pushed a commit that referenced this issue Mar 29, 2021
e1acabe Upload Styles (#5351)
d9cbf08 Update and rename journal-of-eta-maritime-science.csl to dependent/journal-of-eta-maritime-science.csl (#5353)
988ecca Update clinical-and-translational-immunology.csl (#5348)
1691078 Update molecular-plant-pathology.csl (#5349)
932a5bf Create neurospine.csl (#5334)
d663ffc Update sylwan.csl (#5341)
b7be05d Update pakistan-journal-of-agricultural-sciences.csl (#5343)
d742832 Please rename to Tijdschrift-voor-geneeskunde-en-gezondheidszorg (#5344)
6c6be4d Update et-al settings for journal-of-the-american-society-of-nephrology.csl (#5333)
0263204 Correct citation format of numeric AOSIS styles (#5335)
e4cd348 Create the-horticulture-journal.csl (#5327)
5804a6f Add AOSIS dependents (#5332)
2b4510b Create natura-croatia.csl (#5328)
03c6789 Create groundwater.csl (#5329)
e08fa09 Create hystrix-the-italian-journal-of-mammalogy.csl (#5330)
1d730aa update page-range-format for Anglia (#5331)
9bb8724 Sort American Physiological Society citation style according to updated author instructions (#5305)
a8b53ca Create african-online-scientific-information-systems-vancouver.csl (#5326)
c7d8f90 Update yozgat-bozok-universitesi-fen-bilimleri-enstitusu.csl (#5319)
87dc0eb Update and rename tijdschrift-voor-geneeskunde.csl to tijdschrift-voo… (#5325)
89e07b0 Create university-of-gothenburg-apa7-swedish-legislations (#5316)
4582cb6 Create chinese-law-journals.csl (#5314)
6412083 Create stellenbosch-law-review.csl (#5322)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: e1acabe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants