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 - You could pass Directory Selection Panel even you enter r/o directory
Summary: You could pass Directory Selection Panel even you enter r/o directory
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-02 15:30 UTC by dmladek
Modified: 2005-02-11 14:44 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 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.