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 232294 - Untrusted "file exist" provider
Summary: Untrusted "file exist" provider
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.4
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords: RANDOM, TEST
Depends on:
Blocks:
 
Reported: 2013-07-05 06:42 UTC by Alexander Simon
Modified: 2013-07-06 02:03 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 Alexander Simon 2013-07-05 06:42:13 UTC
Please, evaluate assertion in unit tests:
SEVERE: null
java.lang.AssertionError: c:\var\tmp\hudson0\tester-cnd-test-downloads\discoverytestapplication\src\main.cpp exists, but reported as NOT_FOUND
	at org.netbeans.modules.cnd.utils.cache.CndFileUtils.getFlags(CndFileUtils.java:397)
	at org.netbeans.modules.cnd.utils.cache.CndFileUtils.isExistingFile(CndFileUtils.java:338)
	at org.netbeans.modules.cnd.utils.cache.CndFileUtils.isExistingFile(CndFileUtils.java:327)
	at org.netbeans.modules.cnd.dwarfdiscovery.provider.BaseDwarfProvider.sizeComilationUnit(BaseDwarfProvider.java:437)
	at org.netbeans.modules.cnd.dwarfdiscovery.provider.AnalyzeFolder.canAnalyze(AnalyzeFolder.java:203)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicableDwarfFolder(DiscoveryExtension.java:229)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicable(DiscoveryExtension.java:161)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.canApply(DiscoveryExtension.java:302)
	at org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.canApply(DiscoveryExtension.java:458)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject.discoveryByDwarf(ImportProject.java:1519)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject.modelDiscovery(ImportProject.java:1320)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject.postModelDiscovery(ImportProject.java:1227)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject.access$2100(ImportProject.java:151)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject$10$1.run(ImportProject.java:1207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 Alexander Simon 2013-07-05 06:44:37 UTC
Exception occurred in the test:
org.netbeans.modules.cnd.discovery.project.cases.SimpleScriptTestCase.testSimple (from org.netbeans.modules.cnd.discovery.project.tests.Configure1DiscoverySuiteTest) 
on Windows, build 8480
Comment 2 Egor Ushakov 2013-07-05 09:18:02 UTC
file may appear after parent folder index but before the assert, this is not error, just cache out of sync with the filesystem.
Fixed in:
http://hg.netbeans.org/cnd-main/rev/36f32fedd0b2
Comment 3 Quality Engineering 2013-07-06 02:03:03 UTC
Integrated into 'main-silver', will be available in build *201307052300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/36f32fedd0b2
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #232294 - Untrusted "file exist" provider