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 54119

Summary: "AssertionError: Did not find resource '.../.nbattrs'." from VcsFileSystem.deleteFile
Product: obsolete Reporter: Jesse Glick <jglick>
Component: vcscoreAssignee: issues@obsolete <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace

Description Jesse Glick 2005-01-28 03:27:42 UTC
050125 custom, JDK 1.6.0. I have nb_all mounted as
a CVS dir. In the Favorites tab, I select
nbbuild/testuserdir (an ignorable temp directory)
and press Delete. After a moment, this exception
is thrown. The dir is not fully deleted.
Comment 1 Jesse Glick 2005-01-28 03:28:09 UTC
Created attachment 20022 [details]
Stack trace
Comment 2 _ pkuzel 2005-01-28 09:44:32 UTC
The assert is not correct. Should be somethingLike_Masked(name) || 
fo != null. 
 
It's hard to tune asserts having both file masking and file adding 
(virtuals). 
 
 
Comment 3 _ pkuzel 2005-01-31 16:10:09 UTC
So the assert was correct. 

findResource was called too late (after File.delete()). This approach
fails for not yet constructed fileobjects.

FIXED in VcsFileSystem.java new revision: 1.314