Bug #12038
SYSTEM-DIALOG GET-FILE: DEFAULT-EXTENSION patterns and USE-FILENAME paths
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
History
#1 Updated by Greg Shah about 1 month ago
SYSTEM-DIALOG GET-FILE: DEFAULT-EXTENSION patterns and USE-FILENAME paths¶
Project: User Interface
Problem¶
The gap marking recordsSYSTEM-DIALOG GET-FILE as Full / Full (R) with the detail "DEFAULT-EXTENSION, USE-FILENAME, RETURN-TO-START-DIR and CREATE-TEST-FILE are passed to the client but not honored by the GUI file chooser". That is partly stale:
DEFAULT-EXTENSIONis honoured.FileDialogImpl.setSelectedPathappends the extension when the chosen name has no dot.USE-FILENAMEis honoured.ThinClient.chooseFilecallssetSelectedPathbefore showing the dialog, and the dialog pre-fills its file name field from it.RETURN-TO-START-DIRis ignored, but the FWD dialog never changes the process's working directory, so FWD always behaves as if it were given.CREATE-TEST-FILEis stored but not used, so the dialog does not check that the directory is writable; a failure is reported when the file is written instead.
DEFAULT-EXTENSIONis often written as a pattern rather than an extension, for exampleDEFAULT-EXTENSION "*.csv". FWD appends it as given, producingname.*.csv. What OpenEdge produces is not established.USE-FILENAMEwith a variable holding an absolute path.FileDialogGuiImpl.validateSelectionbuilds the result from the current directory and the typed text, which may give a wrong path when the pre-filled value is already absolute.
Work¶
- Establish on OpenEdge the result of
DEFAULT-EXTENSIONgiven as"*.ext",".ext","ext"and"*.*", with and withoutSAVE-AS, when the user types a name with and without an extension. - Establish on OpenEdge the result of
USE-FILENAMEwith a relative name, an absolute path, and a path in a directory other thanINITIAL-DIR, when the user accepts the pre-filled value unchanged. - Make FWD match both.
- Decide whether
CREATE-TEST-FILEshould test that the directory is writable, as OpenEdge does, and implement it if so. - Correct the gap detail to name only what is really missing.
Testcases¶
With an OpenEdge baseline: each combination above, checking the returned file name exactly.