Issue 37126 - default base file name does not change
Summary: default base file name does not change
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 02:13 UTC by bkorb
Modified: 2005-02-08 09:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bkorb 2004-11-14 02:13:56 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.
Comment 1 bkorb 2004-11-14 02:24:46 UTC
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.
Comment 2 stephan.wunderlich 2004-11-15 09:00:41 UTC
changed priority since this is for sure no P1
Comment 3 stephan.wunderlich 2004-11-15 09:01:24 UTC
changed component since this has nothing to do with the OOo-API
Comment 4 stephan.wunderlich 2004-11-15 09:02:57 UTC
SW->TM: please have a look at this
Comment 5 bkorb 2004-11-15 16:37:16 UTC
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.)
Comment 6 mci 2004-11-25 12:55:05 UTC
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...
Comment 7 bkorb 2004-11-25 19:03:19 UTC
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.
Comment 8 mci 2005-02-07 11:16:25 UTC
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...
Comment 9 mci 2005-02-08 09:00:44 UTC
I got a mail that this works for bkorb, too...

==> closing