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 21549 - IDE shuts down if you remove nbm from userdir before clicking Finish
Summary: IDE shuts down if you remove nbm from userdir before clicking Finish
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-13 09:51 UTC by John Jullion-ceccarelli
Modified: 2003-06-30 13:49 UTC (History)
2 users (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 John Jullion-ceccarelli 2002-03-13 09:51:59 UTC
Steps to reproduce:
1. Open Auto Update wizard, select some module to install, and click next to 
download the module.
2. When the module is downloaded (not installed) go to 
<userdir>/update/download and remove the nbm.
3. Go back to Update wizard and click next and Finish. The IDE exits without 
warning.

I know this isn't a scenario that will come up all the time, but we do tell 
users who want to download nbms and manually install them on other machines to 
copy the nbms out of the userdir before clicking Finish. It is likely that some 
users will accidentally move the nbm instead of copying it.
Comment 1 akemr 2002-03-13 12:38:21 UTC
Deleting in user dir is definitely not supported action.

However I fixed the behaviour in trunk this way:
If user deletes nbm(s), after clicking Finish warning
dialog will be displayed without attempt to run Updater..
Comment 2 John Jullion-ceccarelli 2002-03-13 14:01:38 UTC
should this be 3.3.2_CANDIDATE?
Comment 3 Patrick Keegan 2002-03-13 14:20:08 UTC
Marking as 3.3.2_CANDIDATE candidate because:
-we explicitly support local auto updating of NBMs, but the UI is incomplete, and it could therefore 
happen that a user would make a small mistake in this process and cause the IDE to crash, which could 
mean data loss.
-the fix appears to be safe
Comment 4 akemr 2002-03-13 15:06:13 UTC
It isn't IDE crash without warning - it's only standard safe restart
after AU wizard - there is describing text on last wizard panel.
So - no data loss.

But IDE launcher then found no .nbm (because of delete),
so it doesn't restart.
Comment 5 akemr 2002-03-27 08:00:16 UTC
Removing 3.3.2_CANDIDATE keyword because of my previous comment and
because the above mentioned fix is not possible in Orion, only in 3.4,
where is changed implementation.
Comment 6 Jaromir Uhrik 2002-04-04 12:25:29 UTC
Verified in NB build #200204040100.
Comment 7 Quality Engineering 2003-06-30 13:49:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.