#1188 export to html via the command line is broken

next release
open
nobody
None
5
2014-12-22
2013-10-17
Wastl
No

Given a bibfile refs.bib, say, the following export to html using the command line interface works as intended with JabRef version 2.8:

java -jar JabRef-2.8.jar -n -o refs.html,html refs.bib

However, since JabRef version 2.8.1, i.e. also with the current beta release 2.10b, I get the following error:

Could not export file 'refs.html': null

Some changes between the releases 2.8 and 2.8.1 have broken the html-export via the command line.

Note that this does not affect the other HTML-export filters simplehtml, listrefs, tablerefs, tablerefsabsbib, which still work.
But most notably, all exports work via the GUI in all mentioned versions of JabRef!

Since the bug could thus also depend on the operating system or the shell in use, I tell you mine: Linux 3.2.0-54-generic x86_64 (Ubuntu 12.04 LTS) using a bash shell.

Can someone confirm for Windows or Mac that export to html via the command line is broken in recent version of JabRef (since 2.8.1)?

For Linux systems, this bug is already confirmed in comments to a recent bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723100 . This reports a related issue concerning auxfile-based subsetting of bibfiles via the command line. However, the --aux-bug only appears since the current beta-release, so it is a different problem!

Discussion

  • Wastl
    Wastl
    2013-10-17

    By building various suspected JabRef revisions between releases 2.8 and 2.8.1 from source (luckily there are not many), I could further boil down the html-export issue to the specific commit in the JabRef sources by which the bug appeared:
    https://sourceforge.net/p/jabref/code/ci/d4ea8bce7db9915365e5a74b7192cd7ee8a761da/

    Somehow the change of the decodeEntry() function in /jabref/src/java/net/sf/jabref/gui/FileListTableModel.java entitled "Improved handling of file fields written in the style exported from Zotero." had the side effect of breaking the html export filter in the command line...