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 38555 - running CVS Remove on node in Search Results removes parent folder
Summary: running CVS Remove on node in Search Results removes parent folder
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-08 19:48 UTC by John Jullion-ceccarelli
Modified: 2004-02-23 16:04 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 John Jullion-ceccarelli 2004-01-08 19:48:43 UTC
This bug is a beauty. After working all week to
get the new VCS docs ready, I pretty much had the
section done and was preparing my check-in. I ran
a search for files with Needs Update status to see
which files I had deleted locally and needed to be
removed from the repository. I selected all of the
files in the Search Results window and ran CVS >
Remove. A dialog opened asking if I wanted to
remove  the files. I didn't remember having to
confirm this command, but I went ahead and said yes.

Turns out the dialog was asking me if I wanted to
remove the parent directory for the top-most file
I had run the command on. So the Remove command
was run on the entire vcs section of the help.
Including, of course, the local versions of the
files I wanted to keep. So there's a week's worth
of work out the !#$*)%#@!$%*)&#@!$% window.
Comment 1 Martin Entlicher 2004-01-09 08:32:19 UTC
Uff, I must agree that this is a pretty serious problem. I have no
idea why it behaves like this, I will explore it soon.

If this is a bug in VCS module, I feel terribly sorry for that. Home
directories are hopefully backed up, so you can ask our admins if your
files were on your home directory. Also there exists programs that can
recover deleted files in Windows, provided there were not many disk
I/O operations since then.
Comment 2 Martin Entlicher 2004-01-12 15:52:01 UTC
I can only confirm that I have reproduced this behavior. Any command
that is run from "Searched Results" exhibits this behavior.

I'm starting to investigate that...
Comment 3 Martin Entlicher 2004-01-12 17:13:57 UTC
This seems to be a problem in the implementation of search results
window. It seems like it does not set activated nodes. When my action
ask for the activated nodes, it gets nodes that are active in
Explorer.
Comment 4 Marian Petras 2004-01-13 08:21:34 UTC
Martin, you are right. It does not set activated nodes.

John, I am sorry for the lost work.
Comment 5 Marian Petras 2004-01-14 08:21:26 UTC
Fixed in the trunk. The patch fixes also bug #38660 ("It's impossible
to open found files").
Comment 6 Jaromir Uhrik 2004-02-23 16:04:28 UTC
Verified in 200402191900.