When you specify a filename without a directory, ADS uses the default working directory which is the location from which you launched ADS (usually c:\program files\...). In your scenario, your windows user account doesn't have write access in this directory and hence you see the exception.
|
227 KB
ADS saves the path the user enters. So when we test this change, ensure that ADS is still saving the path that the user enters. Only if there is no path / blank path, should the above change apply.
I have put in code to guard against NPE. In this test case, a FileNotFoundException is actually thrown when constructing the FileOutputStream object. Now we are catching that exception (see ScriptGeneratorWorker#getWriter) and showing this error:The file '<file path>' cannot be created or cannot be opened."
As far as I can tell, the default current directory for the File Chooser has always been user's home directory (i.e. "user.home" system property)
I have put in code to guard against NPE. In this test case, a FileNotFoundException is actually thrown when constructing the FileOutputStream object. Now we are catching that exception (see ScriptGeneratorWorker#getWriter) and showing this error:The file '<file path>' cannot be created or cannot be opened."
As far as I can tell, the default current directory for the File Chooser has always been user's home directory (i.e. "user.home" system property)
When you specify a filename without a directory, ADS uses the default working directory which is the location from which you launched ADS (usually c:\program files\...).
@qa: as part of verifying this issue, pls see if you can reproduce the above scenario. If you can still reproduce it, then you should re-open the bug so that it can be addressed.
When you specify a filename without a directory, ADS uses the default working directory which is the location from which you launched ADS (usually c:\program files\...).
@qa: as part of verifying this issue, pls see if you can reproduce the above scenario. If you can still reproduce it, then you should re-open the bug so that it can be addressed.
Issue #15413 |
Reopened |
Incomplete |
Completion |
No due date |
Fixed Build 19.0.0-beta-37 |
No time estimate |
ADS saves the path the user enters. So when we test this change, ensure that ADS is still saving the path that the user enters. Only if there is no path / blank path, should the above change apply.