You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug was discovered on :
JabRef 5.2--2020-12-24--6a2a512
Mac OS X 10.15.7 x86_64
Java 15.0.1
And it is reproductible on the latest development version :
JabRef 5.3--2021-03-01--cfb504c
Mac OS X 10.15.7 x86_64
Java 15.0.2
JavaFX 15.0.1+1
When open a *.bib file where some comment fields contains two #, the autoformat corrupt the *.bib file by replacing the first # by } # and the second # by # {.
I found this bug on my main database (22000+ lines) and I reproduced it on a minimum file with only one entry, see below.
To reproduce this bug :
Launch JabRef
Open the *.bib
Wait circa 15 secondes
The autoformat has been automatically executed (but *.bib file has not been overwritten yet), a * appears before the file name in the tab title
Save the file
Quit JabRef
When reopening the file, error message appears (on my main database with many entries and 22000+ lines, but not with the minify example given here).
Below the original error message after my main database has been corrupted :
This issues seems closes to two others that imply # too :
But it seems sufficiently different to me, hence I opened this new issue.
Example of *.bib with # corrupted
The comment field contains two URL both containing one # : corruption.
Original *.bib file
@Article{ArevaloJr_2009_EPSL278_KUratioSilicateEarth,
Title = {The K/U ratio of the silicate Earth: Insights into mantle composition, structure and thermal evolution},
Author = {Arevalo Jr., Ricardo and McDonough, William F. and Luong, Mario},
Journal = {Earth Planet. Sci. Lett.},
Year = {2009},
Number = {3–4},
Pages = {361 - 369},
Volume = {278},
Comment = {Téléchargé suite à la lecture de :https://en.wikipedia.org/wiki/Thorium#Formationet de :https://en.wikipedia.org/wiki/Thorium#On_Earth},
Doi = {http://dx.doi.org/10.1016/j.epsl.2008.12.023},
}
Corrupted *.bib after autoformat
% Encoding: UTF-8@Article{ArevaloJr_2009_EPSL278_KUratioSilicateEarth,
author = {Arevalo Jr., Ricardo and McDonough, William F. and Luong, Mario},
journal = {Earth Planet. Sci. Lett.},
title = {The K/U ratio of the silicate Earth: Insights into mantle composition, structure and thermal evolution},
year = {2009},
number = {3–4},
pages = {361 - 369},
volume = {278},
comment = {Téléchargé suite à la lecture de :https://en.wikipedia.org/wiki/Thorium} # Formation
et de :
https://en.wikipedia.org/wiki/Thorium #{On_Earth},
doi = {http://dx.doi.org/10.1016/j.epsl.2008.12.023},
}
@Comment{jabref-meta: databaseType:bibtex;}
Example of *.bib with # not corrupted
The comment field contains only one URL containing one # : no corruption.
Original *.bib file
@Article{ArevaloJr_2009_EPSL278_KUratioSilicateEarth,
Title = {The K/U ratio of the silicate Earth: Insights into mantle composition, structure and thermal evolution},
Author = {Arevalo Jr., Ricardo and McDonough, William F. and Luong, Mario},
Journal = {Earth Planet. Sci. Lett.},
Year = {2009},
Number = {3–4},
Pages = {361 - 369},
Volume = {278},
Comment = {Téléchargé suite à la lecture de :https://en.wikipedia.org/wiki/Thorium#Formation},
Doi = {http://dx.doi.org/10.1016/j.epsl.2008.12.023},
}
Not corrupted *.bib after autoformat
% Encoding: UTF-8@Article{ArevaloJr_2009_EPSL278_KUratioSilicateEarth,
author = {Arevalo Jr., Ricardo and McDonough, William F. and Luong, Mario},
journal = {Earth Planet. Sci. Lett.},
title = {The K/U ratio of the silicate Earth: Insights into mantle composition, structure and thermal evolution},
year = {2009},
number = {3–4},
pages = {361 - 369},
volume = {278},
comment = {Téléchargé suite à la lecture de :https://en.wikipedia.org/wiki/Thorium#Formation},
doi = {http://dx.doi.org/10.1016/j.epsl.2008.12.023},
}
@Comment{jabref-meta: databaseType:bibtex;}
The text was updated successfully, but these errors were encountered:
Thanks for your report. This looks like it's a duplicate of #7010 There is also a brief discussion on how to implement a possible fix.
The problem is that the # sign in bibtex is normally used to indicate BibTeX strings and JabRef tries to associate this somehow with a BibTeX string
Thanks a lot !
I really like JabRef and I use it for many years now (from the start of my PhD), this bug was pretty minor, but it’s great it’s now fixed. Update goes brrr… 😃
The bug was discovered on :
JabRef 5.2--2020-12-24--6a2a512
Mac OS X 10.15.7 x86_64
Java 15.0.1
And it is reproductible on the latest development version :
JabRef 5.3--2021-03-01--cfb504c
Mac OS X 10.15.7 x86_64
Java 15.0.2
JavaFX 15.0.1+1
When open a
*.bib
file where somecomment
fields contains two#
, the autoformat corrupt the*.bib
file by replacing the first#
by} #
and the second#
by# {
.I found this bug on my main database (22000+ lines) and I reproduced it on a minimum file with only one entry, see below.
To reproduce this bug :
*.bib
*.bib
file has not been overwritten yet), a*
appears before the file name in the tab titleBelow the original error message after my main database has been corrupted :
This issues seems closes to two others that imply
#
too :But it seems sufficiently different to me, hence I opened this new issue.
Example of
*.bib
with#
corruptedThe
comment
field contains two URL both containing one#
: corruption.Original
*.bib
fileCorrupted
*.bib
after autoformatExample of
*.bib
with#
not corruptedThe
comment
field contains only one URL containing one#
: no corruption.Original
*.bib
fileNot corrupted
*.bib
after autoformatThe text was updated successfully, but these errors were encountered: