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 89196 - Read-only file cannot be deleted from project
Summary: Read-only file cannot be deleted from project
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-13 11:19 UTC by soldatov
Modified: 2009-12-21 05:35 UTC (History)
0 users

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 soldatov 2006-11-13 11:19:15 UTC
- Create Args sample project
- Type in console:
 chmod a-w ~/Args1/src/args.c
- Select args.c file in project tab
- Call context menu and select 'Delete' item
==>
args.c file has not been removed
Comment 1 Jesse Grodnik 2006-11-13 18:48:29 UTC
Downgraded to P3
Comment 2 Jesse Grodnik 2007-04-04 18:37:15 UTC
Upgraded back to P2
Comment 3 Vladimir Kvashin 2007-04-11 19:11:21 UTC
Yes, args.c can easily be removed from the project, but you can not physically
delete the file you have no write access to.

Is this a big surprise? I believe not.

The issue is that no error message is displayed. 
It would be fine if either an error message is displayed or "delete" item is
disabled.

Comment 4 Alexander Pepin 2007-12-24 19:12:34 UTC
Now "Delete" and "Remove" menu items are disabled for read-only files in Files window. Delete item in Project window
also should be disabled. Downgrade the issue to P4.
Comment 5 Quality Engineering 2009-12-21 05:35:05 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team