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 69117 - Export diff action can overwrite existing file without warning
Summary: Export diff action can overwrite existing file without warning
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: diff-issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-22 16:11 UTC by _ rkubacki
Modified: 2007-01-04 17:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-11-22 16:11:34 UTC
dev build from Nov 15. 

The IDE allows to export CVS diff into an existing file without notification. It
means this is a destructive action and there should be confirmation.
Comment 1 _ pkuzel 2005-11-23 10:51:10 UTC
It's intention.

In reality just few users would care to read the warning message. There is
assumption that user knows FileChooser...
Comment 2 jrojcek 2005-11-23 12:11:59 UTC
The problem is that the user might manually type the file name in the file chooser without knowing that a 
file with the same name already exists. In that case the user overrides the file by mistake. We can't ask the 
user to go and check all files in the target folder if a file with the name already exists before the user types 
the new name. Thus there has to be a warning message about overriding the file.
Comment 3 _ pkuzel 2005-11-23 17:25:09 UTC
Checking in Bundle.properties;
/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/actions/diff/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.19; previous revision: 1.18
done
Checking in ExportDiffAction.java;
/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ui/actions/diff/ExportDiffAction.java,v
 <--  ExportDiffAction.java
new revision: 1.30; previous revision: 1.29
done