This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 155617

Summary: Disallow userdir target folder for SQL files in the Save As dialog
Product: platform Reporter: John Baker <jbaker>
Component: ActionsAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: anebuzelsky
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: proposed fix

Description John Baker 2008-12-17 06:24:07 UTC
For SQL files created through View Data or Execute Command, the Save As target folder is in the userdir.

This is a usability problem for the user to change the target folder to another folder outside the userdir everytime a
file is to be saved in another location.  Also, we want to prevent users from saving in the userdir, especially if the
user deletes the userdir than all SQL files will be removed.  Since SQL files usually aren't included in a project,
users will want to save them in another location than the userdir.

I'll provide a fix for this enhancement.  This is a hack but changes will be local and minimal.  If 
DataObject.getPrimaryFile() could be overridden then I could have made a change in the db module.

This issue is a higher priority than issue 154667 .
Comment 1 John Baker 2008-12-17 07:20:51 UTC
Created attachment 75064 [details]
proposed fix
Comment 2 Stanislav Aubrecht 2008-12-18 16:08:48 UTC
this seems like a duplicate of #154667, so please read my comments in issue 154667 

*** This issue has been marked as a duplicate of 154667 ***