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 82759 - UML always uses the same dotuml.zip filename in tmp dir
Summary: UML always uses the same dotuml.zip filename in tmp dir
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 17:36 UTC by Andrew Korostelev
Modified: 2006-09-27 14:59 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 Andrew Korostelev 2006-08-15 17:36:54 UTC
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)
Comment 1 Andrew Korostelev 2006-08-15 17:39:27 UTC
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.
Comment 2 Yang Su 2006-09-20 23:03:37 UTC
Re-implemented the logic to extract uml.zip to user dir, it's not needed to copy
it to a temp directory anymore.
Comment 3 Andrew Korostelev 2006-09-27 14:59:44 UTC
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.