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 71183 - Cannot create personal domain in folder 'My Documents'
Summary: Cannot create personal domain in folder 'My Documents'
Status: VERIFIED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on: 71332
Blocks:
  Show dependency tree
 
Reported: 2006-01-09 10:55 UTC by Jiri Skrivanek
Modified: 2007-03-23 10:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot. (115.07 KB, image/gif)
2006-09-11 08:53 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2006-01-09 10:55:41 UTC
User cannot create a personal domain in folder with space in path (assuming this
should be allowed). To reproduce:

- open runtime view
- on Servers node call Add Server popup
- in Add Server Instance dialog select Sun Java System Application Server
- click Next
- browse Platform location and pick 'Create Personal Domain'
- click Next
- browse folder with space in path (e.g. ....\My Documents\myDomain) but there
is a red error message and domain cannot be created.

The problem is at AddDomainDirectoryPanel(line 114 - !parent.canWrite()). It
returns false for folders with space in path. It is a known JDK bug 4939819 and
it should be somehow work arounded until it is fixed
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4939819).

Build 20060109-0026, JDK1.5.0_06, WindowsXP.
Comment 1 Vince Kraemer 2006-01-12 20:57:05 UTC
actually the root cause is discussed in the bug referenced.

I was able to successfully create a personal domain in directory the directory

C:\Documents and Settings\Administrator\My Documents\My Domains

Comment 2 judytang 2006-09-07 23:24:43 UTC
In 9/1 NB build, I could not recreate the reported issue.  Close as WORKSFORME.
Comment 3 judytang 2006-09-07 23:27:31 UTC
I am closing this issue.  Please reopen if issue still exists.
Comment 4 Jiri Skrivanek 2006-09-11 08:52:36 UTC
I can reproduce this issue in build 20060911-0600, JDK1.6.0-b93, WindowsXP. Look
at screen shot.
Comment 5 Jiri Skrivanek 2006-09-11 08:53:23 UTC
Created attachment 33746 [details]
Screen shot.
Comment 6 Vince Kraemer 2006-09-11 19:15:26 UTC
no changes ready for check in today -- 5.5 code freeze
Comment 7 judytang 2006-09-12 22:09:34 UTC
Looking into this problem further, I was able to recreate the problem on NB 9/11
build , JDK1.6.0-b98 and JDK1.5 update 8, WindowsXP.  

I found if I created domain3 giving the following directory (1), I see the
reported issue, but if I give the following directory (2), I was able to create
the domain3 ok and start the server ok.

The difference between the two directories is the directory (2) is where I
installed appserver.  I wonder why this can make difference ? The other thing is
in directory (1) it has two spaces in the directory tree, would this cause the
problem ?

(1) C:\Documents and Settings\Administrator\My Documents\My Pictures\domain3

(2) D:\AppServer Install\9.0UR1glassfish\domains\domain3
Comment 8 Jiri Skrivanek 2006-09-13 08:09:34 UTC
The issue is valid only for 'My Documents' folder as stated in previous
descriptions and in this bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4939819.
Comment 9 judytang 2006-09-14 02:02:26 UTC
Thanks for the update.  I now understand the whole picture.

I used the CLI way to try to create the domain under the My Documents directory,
I got the no write permission error below.  May be the plugin can do the same
thing to issue an error message in this case ?


No write permission: C:\Documents and Settings\Administrator\My Documents\My Pic
tures
Comment 10 Vince Kraemer 2007-03-22 22:49:12 UTC
following the lead of issue 71332
Comment 11 Jiri Skrivanek 2007-03-23 10:43:52 UTC
Verified.