Issue 4306

Summary: AOO File dialog opens *.lnk itself as document instead of opening linked document
Product: General Reporter: Unknown <non-migrated>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: issues, oooqa, philip.burgess.pb1, rainerbielefeld_ooo_qa, sos, xslf
Version: 3.4.0Keywords: oooqa
Target Milestone: ---   
Hardware: PC   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---
Description Flags
Test Kit none

Description Unknown 2002-04-29 12:51:37 UTC
When you do File-->Open, start at Desktop (or anywhere else) and doubleclick a 
shortcut to a folder, you go to the folder BUT the shortcut.lnk filename also 
fills into the Open File dialogue. This shouldn't happen.
Comment 1 prgmgr 2002-09-24 01:43:41 UTC
Tony, thanks for posting this issue.

Thank you for using and supporting OOo.

Duplicated on Win NT 4.0 SP6a, OOo 1.0.1.
Comment 2 prgmgr 2002-10-13 17:06:42 UTC
*** Issue 8086 has been marked as a duplicate of this issue. ***
Comment 3 Joost Andrae 2002-11-28 16:41:33 UTC
JA->TM: reassigned to you
Comment 4 thorsten.martens 2003-01-23 13:37:31 UTC
Our own file-open dialog doesn´t support lnk. files by now. So this
problem occurs in the windows system file-open dialog in every
application this dialog is used (eg. windows media player) and not in
OpenOffice/StarOffice only. This one is a windows "problem" and won`t
therefore be fixed.
Comment 5 Unknown 2003-01-23 13:52:53 UTC
I can tell you that this behavior does NOT occur in Windows 2000 in
WMP or any other application that uses the Win2K system-wide File-->
open browse box, including Office 2000. 

If you test OpenOffice on Win2K (note the OS field in the bug) you'll
find that OpenOffice does indeed exhibit the behavior detailed in the
beginning of the bug, but that no other apps using the Windows common
File-Open box have this problem. MS noticed it on NT and fixed it for
Win2K, but it's still broken in OO.

It's been nearly a year since I reported this problem, so I can
understand your desire to just close it, but "Blame MS" is the wrong
approach in this case. They do it right, you don't. Sorry.
Comment 6 thorsten.martens 2003-01-24 10:15:30 UTC
TM->TRA: As far as I know, MS Office 2000 uses an own implemented
file-open dialog which looks very similar to the systems one. Due to
the fact, that there are apps. which act the same way, we do (eg. MS
Windows Media Player) and some who don`t (like MS Notepad), please
have a look and consider if this is a bug (not only in StarOffice) or
an RFE ! Thanks !
Comment 7 tino.rachui 2003-01-28 15:11:02 UTC
I'm afraid it is yet another bug of the Windows FileOpen dialog. The
Windows File dialog behaves correctly when called as "File Save..."
dialog. A simple test progam shows that it even behaves correctly when
launched as FileOpen dialog, but StarOffice uses a rather complicated
scheme to setup the Windows File dialog to work around other bugs of
the Windows File dialog, so I suspect this is the source of the problem.
Comment 8 tino.rachui 2003-03-04 07:52:04 UTC
Yes I admit it looks ugly. I already invested some effort to find the
cause of this behavior but until now without luck. 
So everybody is welcome to help finding the reason for the behavior of
the Windows FileOpen dialog.
I cannot see the reason in our FilePicker code (project: gsl/fpicker).
I will try further to find the cause.

Kind Regards,
Comment 9 tino.rachui 2003-03-10 10:57:16 UTC
Found a hint. If someone creates a Windows system FileOpen dialog that
allows multi-selection then the dialog behaves strange on links to
directories. Even the Windows Media Player under Windows XP has this
problem (try it). Notepad on the other hand uses the Windows File
dialog in single selection mode and there is no problem as there is no
problem in OO with "Insert graphic from file..." which is even only a
single selection mode dialog. So we were not so wrong with blaming M$.
I will look if there is a workaround.

Kind Regards,
Comment 10 tino.rachui 2003-03-10 12:42:19 UTC
TRA->TRA: see even #108001#.


A simple test program using the Windows File dialog shows the following
(we consider the behavior when clicking on a link to a directory
either with a double click or a single click followed be a click to
the ok button):

Filter                 Single/Multiselection mode   File dialog action
No filters specified  Single sel. mode              returns the link
(filter box is empty)

No filter specified   Multi sel. mode               a single click on  
                                                    the link shows it 
                                                    in the file name 
                                                    box, clicking ok 
                                                    returns the link

At least one filter   Single sel. mode              double clicking on 
specified                                           the links changes
                                                    into the refered  
                                                    folder (ok)

At least one filter   Multi sel. mode               Single click on the
specified                                           link shows it in 
                                                    the file name box, 
                                                    clicking ok changes 
                                                    into the refered 

Kind Regards,
Comment 11 tino.rachui 2003-03-10 13:16:19 UTC
Hi Andre,

we could at least prevent iBis issue #108001# if you would add at
least one filter like e.g. "Alle (*.*)" to the FilePicker (please ask
FS how to do it).

Kind Regards,
Comment 12 thorsten.ziehm 2003-03-12 11:51:56 UTC
Set to OOo later flag. Because it is not so important for OOo to
workaround bugs in Windows system file manager.
Comment 13 lohmaier 2003-05-18 14:02:03 UTC
*** Issue 6984 has been marked as a duplicate of this issue. ***
Comment 14 lohmaier 2003-05-18 14:04:02 UTC
*** Issue 12472 has been marked as a duplicate of this issue. ***
Comment 15 thorsten.martens 2003-06-11 09:40:13 UTC
*** Issue 8086 has been marked as a duplicate of this issue. ***
Comment 16 lohmaier 2003-09-14 21:34:33 UTC
*** Issue 18523 has been marked as a duplicate of this issue. ***
Comment 17 thorsten.martens 2004-07-27 10:09:51 UTC
*** Issue 31888 has been marked as a duplicate of this issue. ***
Comment 18 Oliver Specht 2005-04-25 15:03:27 UTC
*** Issue 42978 has been marked as a duplicate of this issue. ***
Comment 19 groucho266 2005-04-25 16:56:09 UTC
Removed myself from the CC list.
Comment 20 tino.rachui 2005-06-13 12:45:52 UTC
Reassigned for change of responsibilities sake.
Comment 21 hennes.rohling 2007-07-12 12:06:53 UTC
Comment 22 kai.sommerfeld 2009-10-15 12:35:25 UTC
cd: Please take over.
Comment 23 Rainer Bielefeld 2014-02-02 08:03:03 UTC
Still Reproducible with server installation of "AOO 4.1.0-Dev – English UI / German locale - [AOO410m1(Build:9750) - Rev. 1562493 - 2014-01-30]" on German WIN7 Home Premium (64bit)", own separate user profile:

0. Download / Unzip attached test kit
1. From AOO Start center menu #Tools -> Options -> OO -> General -> Use OO 
   File dialogs'
2. From AOO Start Center menu #File -> Open -> Browse for TestKit-folder 
   > You will see "samplepresentation.otp.lnk", what is a link / shortcut  to 
     document "samplepresentation.otp" in subfolder "Sample"
3. Click "samplepresentation.otp.lnk" -> [Open]
   Expected: Presentation will be opened
   Actual: ASCII Filter Options dialog appears                     :-(

Additional Info:
(a) I wonder whether "Bug 3322 - OO tries to open Windows shortcuts 
    as documents" means  that also other OS than WIN are affected.
(b) I do not agree with Rating P5  - Trivial.
Comment 24 Rainer Bielefeld 2014-02-02 08:03:52 UTC
(c)  Already reproducible with  Pre-3.4.0 (never worked), but because of crippled  
     Version selector (Bug 123063) no useful info can be contributed
Comment 25 Rainer Bielefeld 2014-02-02 08:04:30 UTC
Created attachment 82468 [details]
Test Kit

See Comment 23 how to use
Comment 26 Rainer Bielefeld 2014-02-02 08:15:27 UTC
*** Issue 62196 has been marked as a duplicate of this issue. ***
Comment 27 Rainer Bielefeld 2014-02-02 08:16:21 UTC
(d) Raise severity because of DUP "Bug 62196 - 'File > New > 
   Templates and Documents' tries to open *.lnk itself as document 
   instead of linked Template"
Comment 28 Rainer Bielefeld 2014-02-02 08:17:05 UTC
*** Issue 100318 has been marked as a duplicate of this issue. ***