Issue 82482 - Forbid insertion of biblio entry without shortname
Summary: Forbid insertion of biblio entry without shortname
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.3
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: needmoreinfo
Depends on:
Reported: 2007-10-10 16:53 UTC by rpolson0
Modified: 2017-05-20 11:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

sample file with embedded bibliography (40.69 KB, text/plain)
2007-10-10 16:54 UTC, rpolson0
no flags Details
showing the bibliography short name grayed out (94.17 KB, image/png)
2008-02-05 03:48 UTC, plouj
no flags Details
export error message (53.02 KB, image/png)
2008-02-05 03:48 UTC, plouj
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rpolson0 2007-10-10 16:53:42 UTC
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.
Comment 1 rpolson0 2007-10-10 16:54:39 UTC
Created attachment 48819 [details]
sample file with embedded bibliography
Comment 2 michael.ruess 2007-10-10 18:29:40 UTC
Reassigned to ES.
Comment 3 eric.savary 2007-10-11 09:53:09 UTC
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...
Comment 4 eric.savary 2007-10-11 09:53:35 UTC
Comment 5 rpolson0 2007-10-11 16:23:22 UTC
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.
Comment 6 plouj 2008-02-05 03:40:14 UTC
I can definitely reproduce this in 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
* as soon as that error box appears, the terminal from which I started
'oowriter' shows this:

$ oowriter 

* /tmp/test.bib is never created:
$ file /tmp/test.bib
/tmp/test.bib: ERROR: cannot open `/tmp/test.bib' (No such file or directory)
Comment 7 plouj 2008-02-05 03:48:14 UTC
Created attachment 51367 [details]
showing the bibliography short name grayed out
Comment 8 plouj 2008-02-05 03:48:49 UTC
Created attachment 51368 [details]
export error message
Comment 9 eric.savary 2008-09-12 20:39:04 UTC
@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.
Comment 10 Marcus 2017-05-20 11:15:30 UTC
Reset assigne to the default "".