Bug 576069 - FileDialog does not support NOTESTFILECREATE on Windows
Summary: FileDialog does not support NOTESTFILECREATE on Windows
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.19   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-17 12:28 EDT by Michael Dedina CLA
Modified: 2021-09-17 12:59 EDT (History)
0 users

See Also:


Attachments
security settings (33.57 KB, image/png)
2021-09-17 12:28 EDT, Michael Dedina CLA
no flags Details
error message (34.73 KB, image/png)
2021-09-17 12:59 EDT, Michael Dedina CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dedina CLA 2021-09-17 12:28:13 EDT
Created attachment 287162 [details]
security settings

SWT FileDialog on Windows creates a temporary file then deletes it. In the Win32 API this behavior can be turned off by passing OFN_NOTESTFILECREATE, but there is no way to turn it off in FileDialog.

Our problem is that some of our application's users configure the file system security so that a file can be created but not deleted. This is important for their audit process. When our application tries to save to such a directory, FileDialog shows the following error “You don’t have permission to modify files in this network location.” A temporary file with 0 bytes is created in the directory and it remains there after the dialog is closed.

I'm requesting that FileDialog provides some mechanism to turn off this test-file behavior, allowing users to choose a new file in a directory without delete permission.
Comment 1 Michael Dedina CLA 2021-09-17 12:59:56 EDT
Created attachment 287163 [details]
error message