Apache OpenOffice (AOO) Bugzilla – Issue 82482
Forbid insertion of biblio entry without shortname
Last modified: 2017-05-20 11:15:30 UTC
Hi- I'm trying to play with an embedded bibliography. If I try to export the bibliography, File>Export> filetype bibtex, then it starts to save but then gives an error. "Error saving the document. Write error. The file could not be written" Other exports (PDF, LaTeX, XHTML) produce output files.
Created attachment 48819 [details] sample file with embedded bibliography
Reassigned to ES.
This is due to an empty reference (no shortname in the reference), the [1]. @rpolson0: how did you manage to create such an entry without shortname??? I didn't succeed over the UI. @SUS/OS: waiting for the answer of the submitter... If the creation of an entry without shortname may be easily reproducible, we may forbid this over the UI else warn the user while exporting to BibTex that the export will fail and why. I would tend to consider this issue as invalid...
.
Here's what I did: open new document, type a word or two. Go to Insert>Index and Taables>Bibliography entry, a new popup window appears. Check "From document content" then click "insert". If "edit" is then clicked, the short name is grey and nothing can be entered, but all other entries are editable.
I can definitely reproduce this in openoffice.org-2.3.0-6.11.fc8 on Fedora 8. This may be of interest: * the process of exporting to /tmp/test.bib takes a few seconds (feels longer than a regular document save time), and the progress bar at the bottom of the writer's window appears to be full * after a few seconds an error box pops up saying: "Error saving the document Untitled1: Write Error. The file could not be written." this is exactly what is shown even though I explicitly tried to export to /tmp/test.bib * as soon as that error box appears, the terminal from which I started 'oowriter' shows this: $ oowriter Error:java.lang.NullPointerException * /tmp/test.bib is never created: $ file /tmp/test.bib /tmp/test.bib: ERROR: cannot open `/tmp/test.bib' (No such file or directory)
Created attachment 51367 [details] showing the bibliography short name grayed out
Created attachment 51368 [details] export error message
@OS: it is possible to insert a bibliography entry without shortname. - Insert - Indexes and Tables - Bibliography Entry - Choose "From document content" - Click "Insert" 1) This does not make sense 2) This breaks an import to Bibtex and (who knows?) may corrupt the document [Insert] should be disabled as long as no shortname is selected in the listbox.
Reset assigne to the default "issues@openoffice.apache.org".