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 39000

Summary: J2SE project wizard: Create in Read-only directory
Product: java Reporter: zikmund <zikmund>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    
Attachments: NullPointerException
proposed patch

Description zikmund 2004-01-19 19:14:04 UTC
200401181900 build
How to reproduce:
1) Invoke Web module wizard
2) Use Browse button and choose Read-only directory
3) Finish
4) ERROR: NullPointerException occures
Comment 1 zikmund 2004-01-19 19:15:36 UTC
Created attachment 12966 [details]
NullPointerException
Comment 2 Ana.von Klopp 2004-02-02 17:51:20 UTC
Will fix for 3.6
Comment 3 jdi 2004-02-16 09:34:00 UTC
Created attachment 13443 [details]
proposed patch
Comment 4 jdi 2004-02-16 09:47:19 UTC
Evaluation:
Issue in the setPath() method.
There is no check on "readonly" directory.
Now if the directory is "readonly" button "Finish" is disable and 
message "This directory is readonly" is displayed.
Comment 5 Milan Kuchtiak 2004-06-29 14:52:19 UTC
The issue still exists in promo-D.
Web project wizard throws exception when creating web project in
read-only directory.
Comment 6 Radko Najman 2004-08-10 09:34:27 UTC
Fixed in webapps.
Reassigning to j2se project to fix j2se wizards.
Comment 7 Tomas Zezula 2004-08-17 10:41:29 UTC
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectGenerator.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectGenerator.java,v
 <--  J2SEProjectGenerator.java
new revision: 1.23; previous revision: 1.22
done
Processing log script arguments...
More commits to come...
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/Bundle.properties;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.30; previous revision: 1.29
done
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelProjectLocationVisual.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelProjectLocationVisual.java,v
 <--  PanelProjectLocationVisual.java
new revision: 1.20; previous revision: 1.19
done
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelSourceFolders.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelSourceFolders.java,v
 <--  PanelSourceFolders.java
new revision: 1.20; previous revision: 1.19
done
Processing log
Comment 8 zikmund 2004-08-20 09:08:02 UTC
Verified.