Apache OpenOffice (AOO) Bugzilla – Issue 105244
writer overwrites file without warning when saving graphics with manually entered file name
Last modified: 2017-05-20 10:30:56 UTC
OOo overwrites an existing image file without warning, if the file name is entered manually. Steps to reproduce: 1. Select a graphics in an ODT (e.g. using Navigator) 2. Right click & "Save Graphics" under deliberative name without extension (which is added automatically) - e.g. "x" for x.jpg - and press "Save" 3. Select a different graphics and repeat the same steps. Choose the same file name - here: "x" 4. Clicking button "Save" saves the image file and overwrites the existing file without warning. In contrast, choosing the file name by picking an existing file (by clicking or double cklicking) leads to the expected warning "File already exists. Overwrite?" OOo 3.1.1 / OOO310m19 (Build 9420) / Suse Linux 10.3 / KDE
confirmed same happens on DEV300m57, linux build, OOo file dialogs The issue only exists for writer - impress and draw give a warning, that the file already exists. (btw.: in contrast to writer, impress and draw have a checkbox "automatic file extension" in the save dialog).
Also true for 3.1.0 on WinXP with systemdialogs.
made Summary text more comprehensible
CCing me and sba, as requested
This was imho a new feature in 3.0.0 (2.4.3 does not have it) I found it broken in OOo 3.0.0 (OOO300m9) on Kubuntu, so maybe the bug was there from the first implementation.
MRU->OS: can confirm this on WinXP. Insert a graphic into Writer document. Choose to "Save graphic..." end enter the name of an existing graphic WITHOUT the file suffix, the file will be overwritten without warning. This is not the case e.g. in Draw.
I think this is an example for the data_loss keyword.
This issue is reproducible with 3.1.1 (build OOO310_m19) OS: windows vista home edition
Still there in DEV300m84...
SBA->OS: As discussed, set target to OOo 3.4
The problem is that the filter (XOutBitmap::WriteGraphic()) always writes the file with extension. Fixed in cws os151 in http://hg.services.openoffice.org/cws/os151/rev/a777f22c1d4c Additionally the automatic extension flag has been added to the dialog. ->od: Please review
Changed to Resolved/Fixed
reassigned to mru for verification
Verified fix in CWS os151.