Summary: | FileDialog does not support NOTESTFILECREATE on Windows | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Michael Dedina <michael> | ||||||
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
Status: | NEW --- | QA Contact: | |||||||
Severity: | enhancement | ||||||||
Priority: | P3 | ||||||||
Version: | 4.19 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 10 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Created attachment 287163 [details]
error message
|
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.