You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/06/19 11:37:48 UTC
[Issue 126376] New: SystemFilePicker getFiles() returns an incorrect
list of files
https://bz.apache.org/ooo/show_bug.cgi?id=126376
Issue ID: 126376
Issue Type: DEFECT
Summary: SystemFilePicker getFiles() returns an incorrect list
of files
Product: App Dev
Version: 4.1.1
Hardware: PC
OS: Windows 7
Status: CONFIRMED
Severity: normal
Priority: P5
Component: api
Assignee: issues@openoffice.apache.org
Reporter: marcelly@club-internet.fr
Described default already exists on AOO 3.4.1.
The problem appears with multi-selection of files, using one of the templates
FILEOPEN_xxx.
Tools > Options > OpenOffice > General : uncheck Use OpenOffice dialogs
Run Macro2 in attached document, select several files.
The MsgBox shows that getFiles() returns an array of n strings, each string is
the complete path to a file.
This is incorrect. The IDL description says :
Multiselection is enabled:
If only one file is selected, the first entry of the sequence contains the
complete path/filename in URL format.
If multiple files are selected, the first entry of the sequence contains the
path in URL format, and the other entries contains the names of the selected
files without path information.
Tools > Options > OpenOffice > General : check Use OpenOffice dialogs
Run Macro2, select several files.
MsgBox shows that the OpenOffice dialog returns an array in conformance with
the API.
--
You are receiving this mail because:
You are the assignee for the issue.
[Issue 126376] SystemFilePicker getFiles() returns an incorrect list
of files
Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126376
Andrea Pescetti <pe...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pescetti@apache.org
--- Comment #3 from Andrea Pescetti <pe...@apache.org> ---
I didn't check on Windows, but on Linux (Gnome 3) the behavior is different:
using your excellent sample document,
* with OpenOffice dialogs everything is as you and the documentation describe
(full path for the first file, no patch for the others);
* with system dialogs the array seems to contain the first file only (with full
path) and nothing else: if I select 3 files the array only contains the first
file I selected.
So it is a variant of the same bug, but still you are correct that behavior is
different.
--
You are receiving this mail because:
You are the assignee for the issue.
[Issue 126376] SystemFilePicker getFiles() returns an incorrect list
of files
Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126376
bmarcelly <ma...@club-internet.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marcelly@club-internet.fr
--- Comment #1 from bmarcelly <ma...@club-internet.fr> ---
Created attachment 84798
--> https://bz.apache.org/ooo/attachment.cgi?id=84798&action=edit
Shows result of getFiles()
--
You are receiving this mail because:
You are the assignee for the issue.
4.1.2_release_blocker requested: [Issue 126376] SystemFilePicker
getFiles() returns an incorrect list of files
Posted by bu...@apache.org.
bmarcelly <ma...@club-internet.fr> has asked for 4.1.2_release_blocker:
Issue 126376: SystemFilePicker getFiles() returns an incorrect list of files
https://bz.apache.org/ooo/show_bug.cgi?id=126376
[Issue 126376] SystemFilePicker getFiles() returns an incorrect list
of files
Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126376
brinzing <ol...@gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |oliver.brinzing@gmx.de
--- Comment #2 from brinzing <ol...@gmx.de> ---
.
--
You are receiving this mail because:
You are the assignee for the issue.
[Issue 126376] SystemFilePicker getFiles() returns an incorrect list
of files
Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126376
bmarcelly <ma...@club-internet.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |4.1.2_release_blocker?
--
You are receiving this mail because:
You are the assignee for the issue.