Issue 98983 - Export as PDF wants to overwrite the odt file
Summary: Export as PDF wants to overwrite the odt file
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.0.1
Hardware: All Windows Vista
: P3 Trivial with 4 votes (vote)
Target Milestone: OOo 3.1
Assignee: h.ilter
QA Contact: issues@framework
URL:
Keywords: regression
: 98569 98903 99168 99990 100022 100023 100872 (view as issue list)
Depends on:
Blocks: 95768
  Show dependency tree
 
Reported: 2009-02-06 17:12 UTC by terrycurran
Modified: 2009-04-24 12:23 UTC (History)
4 users (show)

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


Attachments
Screen dump showing active dialog boxes (72.22 KB, image/jpeg)
2009-02-06 17:19 UTC, terrycurran
no flags Details
suggested patch (2.33 KB, patch)
2009-02-16 22:12 UTC, hennerdrewes
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description terrycurran 2009-02-06 17:12:35 UTC
When i click the export as PDF button, I am presented with the dialog to save 
the file and it offers the file name and the automatic filed extension of .pdf 
which is correct. However when I then accept the defaults I am prompted with a 
box to 'Confirm Save As', which tells me that the file already exists and 
offers the name of the original source file.  This is incorrect action as I am 
exporting as PDF. The same error results if I use File > Export as PDF.
Comment 1 terrycurran 2009-02-06 17:19:01 UTC
Created attachment 59992 [details]
Screen dump showing active dialog boxes
Comment 2 terrycurran 2009-02-06 17:20:59 UTC
This also seems to be happening with 'Save As', the file extension is not being 
changed correctly!
Comment 3 chrk 2009-02-07 22:39:47 UTC
Auto Extension does not work with Windows dialogues in Vista (32 on my side)
when exporting to pdf.

Saving an odt as ott or doc changes the extension correctly, though. So does
export to bib, text or MediaWiki txt.

Workaround:
Go to Tools>Options>OpenOffice.org>General and activate "Use OpenOffice.org
dialogs".
Comment 4 tigermaz 2009-02-08 08:56:43 UTC
The same problem appears if i try to save an opend .doc document using ´Save As´
.odt (or other extension). If I ´Save As´ .odt and confirm overwriting existing
file, the file produced is a .doc by name but an .odt by structure (so does
.pdf). Renaming from .doc to .odf (or .pdf) or using the ´Open with´ dialogue in
Vista opens the file correctly.
Comment 5 Olaf Felka 2009-02-09 10:12:59 UTC
reassigned
Comment 6 h.ilter 2009-02-09 15:26:07 UTC
It's similar to issue 97702 but this is an regression to OOo3.0
Comment 7 h.ilter 2009-02-09 15:29:12 UTC
*** Issue 98903 has been marked as a duplicate of this issue. ***
Comment 8 h.ilter 2009-02-09 15:31:45 UTC
Summary changed from "Problems with Export as PDF"
Comment 9 h.ilter 2009-02-09 18:40:56 UTC
Reassigned to KSO
Comment 10 h.ilter 2009-02-09 18:45:14 UTC
*** Issue 98569 has been marked as a duplicate of this issue. ***
Comment 11 h.ilter 2009-02-16 10:51:56 UTC
cc
Comment 12 hennerdrewes 2009-02-16 22:12:59 UTC
Created attachment 60214 [details]
suggested patch
Comment 13 hennerdrewes 2009-02-16 22:21:54 UTC
When the autoextension check box is checked, the extension should be removed
from the default file name, so that the file picker can append the correct
extension, according to the selected filter.

The tricky part of this issue is: If known extensions are hidden (in Windows
Explorer), the filename field of the file picker doesn't show the extension. But
the selected file is actually the document file (doc in the given example).
Comment 14 hennerdrewes 2009-02-16 22:22:36 UTC
add myself to cc
Comment 15 terrycurran 2009-02-17 09:11:52 UTC
This problem does not exist in 3.0.0 for Windows, it first appears in 3.0.1 for 
Windows, so something has changed between the 3.0.0 and 3.0.1, perhaps the 
changes between the two versions should be reviewed!
Comment 16 kai.sommerfeld 2009-02-18 14:14:53 UTC
hennerdrewes: Patch looks good. Thank you. Will be integrated into 3.1 code line.
Comment 17 kai.sommerfeld 2009-02-18 14:15:45 UTC
.
Comment 18 kai.sommerfeld 2009-02-19 09:10:05 UTC
Fixed in CWS jl117.
Comment 19 michael.ruess 2009-02-19 10:26:08 UTC
*** Issue 99168 has been marked as a duplicate of this issue. ***
Comment 20 kai.sommerfeld 2009-02-24 08:32:46 UTC
Olaf: Please verify the fix in cws jl117. Thanks.
Comment 21 Olaf Felka 2009-02-24 09:08:37 UTC
@ hi: Please have a look.
Comment 22 h.ilter 2009-02-24 12:00:20 UTC
Verified with cws jl117 = ok
Comment 23 Rainer Bielefeld 2009-03-07 13:32:48 UTC
*** Issue 99990 has been marked as a duplicate of this issue. ***
Comment 24 eric.savary 2009-03-08 23:52:45 UTC
*** Issue 100023 has been marked as a duplicate of this issue. ***
Comment 25 Olaf Felka 2009-03-09 14:09:01 UTC
*** Issue 100022 has been marked as a duplicate of this issue. ***
Comment 26 Olaf Felka 2009-03-09 14:09:50 UTC
...
Comment 27 Olaf Felka 2009-03-09 14:13:03 UTC
close the wrong issue :-((
Comment 28 Olaf Felka 2009-03-09 14:13:59 UTC
close the wrong issue :-((
Comment 29 Rainer Bielefeld 2009-04-06 16:17:35 UTC
*** Issue 100872 has been marked as a duplicate of this issue. ***
Comment 30 Rainer Bielefeld 2009-04-06 16:20:14 UTC
*** Issue 98569 has been marked as a duplicate of this issue. ***
Comment 31 h.ilter 2009-04-24 12:23:48 UTC
Still ok in OOo3.1RC1