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.
when uml module copies dotuml.zip to userdir the same filename is always used for file created in tmp directory. For unix systems it may cause impossibility to use UML after the following situation: - user1 starts IDE. - At the moment when dotuml.zip is copied to tmp dir, user1 kills installation process. dotuml.zip with 'rw-r--r--' permissions stays in tmp dir. - user2 tries to use ide, but can't use uml because ide can't initialize user's properties (can't copy dotuml.zip to tmp dir and extract it to userdir. Rised Exception is provided below). The only possible solution is to remove dotuml.zip from tmp dir, but it needs user1 or root permissions java.io.FileNotFoundException: /var/tmp/dotuml.zip (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.netbeans.modules.uml.UMLCoreModule.copyDotUmlIntoUserDir(UMLCoreModule.java:426) at org.netbeans.modules.uml.UMLCoreModule.restored(UMLCoreModule.java:75) at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:366) at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:282) at org.netbeans.ModuleManager.enable(ModuleManager.java:904) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:383) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:317) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:250) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:212) at org.netbeans.core.startup.Main.start(Main.java:383) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96) at java.lang.Thread.run(Thread.java:619)
It is unusual situation. But when it happens, user is confused and uml can't be used at all even by other users. Reinstallation also does not help. Thus I file it as P1.
Re-implemented the logic to extract uml.zip to user dir, it's not needed to copy it to a temp directory anymore.
verified in uc-only-nbms-main-060927.zip I was able only to check that there was no attempt to copy or extract uml zip into temp directory.