Apache OpenOffice (AOO) Bugzilla – Issue 37126
default base file name does not change
Last modified: 2005-02-08 09:00:44 UTC
One would reasonably expect that when you select "save as" the default base name will be that of the file currently being edited. e.g. "foo.sxc" would use "foo" as the base file name for exporting as "foo.html". Surprise, surprise. I had initially created the file as "bar.sxc" so now the "save as" saves the file as "bar.html", thus overwriting a file I absolutely did not want to have overwritten (unless I was extremely careful and edited the default base file name back to "foo"). This is extremely broken and very dangerous. Needs to be fixed.
http://www.openoffice.org/servlets/ReadMsg?list=users&msgNo=78473 Date: Thu, 11 Nov 2004 21:08:42 -0800 From: Bruce Korb <bkorb@veritas.com> Content-Type: text/plain; charset="us-ascii" Subject: [users] How can I change the default file name? Hi, I created a spreadsheet and then copied it into a new file. I modify the new file and save it. All is well. Then I "save as" an HTML file and it overwrites the HTML output of the first file, meaning I have to go back and re-export the original and then "save as" again *THIS* time carefully changing the base name of the output file as well as the output type. Why is it the case that the default base name is the same as the original file? Who in heck would ever want that? Why is it not the base name of the new file? :-( Thanks - Regards, Bruce P.S. It would be "really nice" to be able to set the default base name for the new file to match the base name of the new file.
changed priority since this is for sure no P1
changed component since this has nothing to do with the OOo-API
SW->TM: please have a look at this
Sorry for setting the priority high - I didn't want it languishing in the "wrong component" for months waiting for someone to notice. Thanks for fixing the priority and component. (I couldn't guess which was right.)
Hi bkorb, thanks for using and supporting OpenOffice.org... I created a new document called"i37126.sxw" using OOo 1.1.3 on Solaris. I chose File -> Save as... and got teh save as dialog. The document got the Filename "i37126" and the file type "OpenOffice.org 1.0 Text Document (.sxw)" I changed the file type to "Microsoft Word 97/2000/XP (.doc). the file name didn't change... I didi the same on Linux nad got the expected result... ==> I got the expected result here on Solaris and on Linux...
But you did not follow the protocol: 1. Create a new spreadsheet, called "i37126.sxc". (It could be that it works for docs and not spreadsheets.) and save it. 2. At a command line prompt: $ cp i37126.sxc i37126-new.sxc $ ( soffice i37126-new.sxc &) 3. *NOW* what happens is if you update the thing and type ^S or use "save" from the menu, "i37126-new.sxc" will be updated. *HOWEVER* if you use "save-as", the suggested file name will be "i37126.sxc" and if you select "Microsoft Word 97/2000/XP (.doc)" it will be saved as "i37126.doc" Oops.
Hi bkorb, sorry for delay... You wrote: "3. *NOW* what happens is if you update the thing and type ^S or use "save" from the menu, "i37126-new.sxc" will be updated. *HOWEVER* if you use "save-as", the suggested file name will be "i37126.sxc" and if you select "Microsoft Word 97/2000/XP (.doc)" it will be saved as "i37126.doc" Oops." in this case : ...the suggested file name will be "i37126.sxc"... ==>Exactly this doesn't happen to me... I did: - create a new document i37126.sxc. - closed Office - cp i37126.sxc i37126-new.sxc - opened Office: soffice i37126-new.sxc & - changed the document and saved it - save as... ==> suggested file name is... "i37126-new" ==> filetype OpenOffice.org 1.0 Spreadsheet (.sxc)" - selected filetype "Microsoft Excel 97/2000/XP (.xls; .xlw)" since "Microsoft Word 97/2000/XP (.doc)" was not selectable... ==> the file type changed to the selected, the filename was still "i37126-new" ==> this behaviour is not reproduceable on Linux ==> this behaviour is not reproduceable on Solaris (==> not All OS...) ==> works for me...
I got a mail that this works for bkorb, too... ==> closing