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 125238 - Handle non writeable folder on Windows
Summary: Handle non writeable folder on Windows
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: Registration (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-14 18:55 UTC by mslama
Modified: 2008-01-15 14:14 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 mslama 2008-01-14 18:55:28 UTC
It is not possible to create file in folder even if canWrite() returns true on folder. It is Windows specific semantics.
Comment 1 mslama 2008-01-15 14:09:21 UTC
Code first tries to create target folder using mkdirs(). If folder exists and canWrite() returns true we try to create
temp file in target folder. If it fails we fallback to user home dir.

Main trunk:
/cvs/ide/reglib/src/org/netbeans/modules/reglib/NbServiceTagSupport.java,v  <--  NbServiceTagSupport.java
new revision: 1.14; previous revision: 1.13

release60:
/cvs/ide/reglib/src/org/netbeans/modules/reglib/NbServiceTagSupport.java,v  <--  NbServiceTagSupport.java
new revision: 1.2.2.13; previous revision: 1.2.2.12
Comment 2 mslama 2008-01-15 14:14:28 UTC
release60_registration:
/cvs/ide/reglib/src/org/netbeans/modules/reglib/NbServiceTagSupport.java
new revision: 1.2.2.7.2.6; previous revision: 1.2.2.7.2.5

release55:
/cvs/ide/reglib/src/org/netbeans/modules/reglib/NbServiceTagSupport.java
new revision: 1.2.4.13; previous revision: 1.2.4.12

release551:
/cvs/ide/reglib/src/org/netbeans/modules/reglib/NbServiceTagSupport.java
new revision: 1.2.6.13; previous revision: 1.2.6.12