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 245507 - Prevent writing any files to disk during start
Summary: Prevent writing any files to disk during start
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.0.1
Hardware: All All
: P1 normal (vote)
Assignee: ehsavoie
URL:
Keywords:
Depends on:
Blocks: 245648
  Show dependency tree
 
Reported: 2014-07-09 08:44 UTC by Jiri Skrivanek
Modified: 2014-07-21 09:21 UTC (History)
1 user (show)

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 Jiri Skrivanek 2014-07-09 08:44:43 UTC
Please, evaluate whether writing files to disk during start is necessary. To reproduce:

ant -k -f java.kit -Dtest.config=uicommit test test-generate-html

Error output:

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: C:\space\hudson\workspace\CommitValidationUI-trunk\jdk\jdk7\label\win8\testdistribution\qa-functional\work\org-netbeans-modules-java-kit\userdir0\config\Preferences\org\netbeans\modules\javaee\wildfly.properties
	at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:416)
Comment 1 ehsavoie 2014-07-16 08:25:07 UTC
I'll move the notification mecanism to the 'first' use of the plugin.
Comment 2 ehsavoie 2014-07-17 07:58:15 UTC
Notification and file access happens on the first use of the plugin instead of during its loading.
Comment 3 Quality Engineering 2014-07-18 01:52:19 UTC
Integrated into 'main-silver', will be available in build *201407180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2b64abe480b4
User: Emmanuel Hugonnet <ehsavoie@netbeans.org>
Log: Fixing #245648 and #245507 by moving the changelog notification mecanism to the first effective use of the plugin.