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 41646

Summary: You could pass Directory Selection Panel even you enter r/o directory
Product: installer Reporter: dmladek <dmladek>
Component: CodeAssignee: mslama <mslama>
Status: VERIFIED FIXED    
Severity: blocker CC: blaha
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description dmladek 2004-04-02 15:30:21 UTC
NB36-RC2, RH9, jdk1.4.2_04
==========================

Well, I'm marking it as P4 because it is not
visible on the first attempt and use case is not
typical, so most users won't ever seen it.

Reproduction:
=============
1) on  Dir.Sel.Panel click Browse... button
   and select some non-empty dir and pres Open.
2) Warning, that dir is not empty appears.Click OK
3) instead of existing directory type path to
non-existing directory where you have permisions
to write. eg. your "$HOME/NB 36" and click Next.
4) Click Yes for creating directory.
5) go back by pressing Back
6) Repeat point 1 , 2
7) Now, Select a directory which you create in
point 3 and click Open and Next and Back.
8) now type a directory which doesn't exist and
where you don't have permisions to write.
eg. "/usr/jjj"

You can go Next without any warning and location
where Netbeans is going to be installed is which
you specify in point 3 and 7.

But if you go Next again. Unziping is scipped and
you've got Strange Summary:
"NB 46 installed successfully" 
NB location:
/usr/jjj

To run ide :
/usr/jjj/bin/runide.sh
Comment 1 mslama 2005-02-11 12:38:14 UTC
This should be fixed in NB 4.0 installer. Petr please verify. (NB
installer now checks destination dir when Next button is pressed. Also
write permission is checked.).
Comment 2 Petr Blaha 2005-02-11 14:44:50 UTC
Right, Marek. I verified in daily build 200502101900. In case the user
selects r/o directory then the error message 'Dir ... isn't writable'
is  displayed.