Issue 97702

Summary: Wrong file name suggestion when exporting to PDF and a subfolder with the same name exists
Product: General Reporter: jowereit <jspam>
Component: uiAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 3.0   
Target Milestone: AOO Later   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description jowereit 2009-01-01 23:09:53 UTC
How to reproduce:
 - Use OpenOffice.org under KDE/with KDE integration
 - Save a file under a specific name, e.g. "test.odt"
 - Create a subfolder called like the file you created, in this example "test",
in the directory where you saved the file
 - Click the "Export as PDF" toolbar icon or select File -> Export as PDF

Result:
 - The save dialog's default location is in the "test" subfolder
 - The proposed filename is "test.odt". If you continue with this name (and have
automatic suffix enabled), your exported PDF file will be located in this
subfolder and be called "test.odt.pdf"

Expected behaviour:
 - The save dialog's default location is in the folder where you saved the file
 - The proposed filename is "test". If you continue with this name, your
exported PDF file will be located in the same folder where you saved the file
and be called "test.pdf"
Comment 1 jowereit 2009-01-02 21:28:24 UTC
I did a little further investigation, the problem does not only arise in the PDF
export dialog, but also in the "normal" Export dialog, as well as in the Save As
dialog, under the same circumstances.
Comment 2 thorsten.martens 2009-01-05 10:54:09 UTC
TM->HRO: reproducible, please have a look, thanks !
Comment 3 hennes.rohling 2009-01-21 10:29:31 UTC
Not enough time to fix for 3.1
Comment 4 kai.sommerfeld 2009-06-16 09:39:13 UTC
pl: Can you please have a look. Not sure whether you are the right owner, though.
Comment 5 philipp.lohmann 2009-06-22 12:08:26 UTC
tm: you confirmed this, yes ? 
Comment 6 philipp.lohmann 2009-09-05 15:27:40 UTC
pl->fs: nothing to do with KDE; it's simply the generice file picker in use. In
SvtFileDialog::implGetInitialURL it comes upon the url "file:///..../test" and
finds that a valid directory. To fix this issue it would also have to append the
automatic extension and see if perhaps that file exists. Tricky I'd say.
Comment 7 Frank Schönheit 2009-09-05 19:52:06 UTC
accepting, targeting (I don't really think this relatively seldom situation
deserves 3.x), removing KDE from summary
Comment 8 rybarczyk15 2009-09-10 16:47:14 UTC
Successfully able to replicate the issue on Version 3.1.1 OOO310m19 (Build:9420)
 running Windows Vista-64 SP1.
Comment 9 Marcus 2017-05-20 11:33:25 UTC
Reset assigne to the default "issues@openoffice.apache.org".