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 230386

Summary: Should not write to disk during startup
Product: editor Reporter: Jiri Skrivanek <jskrivanek>
Component: OptionsAssignee: Milutin Kristofic <mkristofic>
Status: VERIFIED INCOMPLETE    
Severity: normal Keywords: REGRESSION, TEST
Priority: P1    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack traces from test.

Description Jiri Skrivanek 2013-05-28 13:43:59 UTC
Automated test discovered writes to disk during startup. To reproduce:

- open java.kit project in IDE
- open IDECommitValidationTest from Functional Test Packages
- run this test (Ctrl+F6). The first test case testWriteAccess should pass. But there are error messages like the following:

Writing any files to disk during start is inefficient and usualy unnecessary.
Consider using declarative registration in your layer.xml file, or delaying
the initialization of the whole subsystem till it is really used.
In case it is necessary to perform the write, you can modify the
'allowed-file-write.txt' file in ide.kit module. More details at
http://wiki.netbeans.org/FitnessViaWhiteAndBlackList

java.lang.Exception: checkWrite: D:\hg\main\java.kit\build\test\qa-functional\work\userdir0\config\Editors\text\x-java\Preferences\org-netbeans-modules-editor-settings-CustomPreferences.xml
Comment 1 Jiri Skrivanek 2013-05-28 13:44:21 UTC
Created attachment 135005 [details]
Stack traces from test.
Comment 2 Milutin Kristofic 2013-05-28 14:15:45 UTC
How often are you running this test? It is regression to which version?
Comment 3 Jiri Skrivanek 2013-05-28 14:23:36 UTC
This test runs every day. Now testWriteAccess fails 54 times in row. I can't specify build number when it started to fail. At least it is a regression to 7.3.1.

http://hudson4qe.cz.oracle.com/view/Trunk-QE/job/CV-multi-UI/887/testReport/
Comment 4 Milutin Kristofic 2013-05-29 11:41:25 UTC
After reading https://netbeans.org/bugzilla/show_bug.cgi?id=230385#c1

I run the test and I haven't seen exception.