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.
Summary: | NB cannot be installed in a directory containing hash marks | ||
---|---|---|---|
Product: | platform | Reporter: | khiem77 <khiem77> |
Component: | Module System | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jglick, pnejedly |
Priority: | P4 | Keywords: | JDK_SPECIFIC, SPACE_IN_PATH |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 20830, 29711 | ||
Bug Blocks: | 29935 | ||
Attachments: | Proposed patch |
Description
khiem77
2002-09-14 20:25:20 UTC
Do not install NetBeans in a directory whose name includes the '#' character as it will completely break anything that works with URLs. It may be possible to fix this problem if and only if you are using JDK 1.4.0 (not possible on 1.3.1). Will evaluate for NB 4.0. JarClassLoader etc. should use URI if possible. Created attachment 7859 [details]
Proposed patch
The attached patch seems to work for me on Linux. Passing to Petr to check whether it runs OK on Windows, and commit if so. Introducing new API in #29711 to deal with File <-> URL conversion. Will not try to solve for JDK 1.3; too hard. Also will not try to solve for all characters; '!' in particular is problematic since even JDK 1.4, in JarURLConnection, assumes that a jar: URL contains one and only one '!', and File.toURI() does not escape '!'. Looks like it can be fixed for 1.4.0 and 1.4.1 but not 1.4.2 (without -J-Dnetbeans.security.nocheck=true; problems with security policy file). I will try to file a bug. Patch does not fully work under Mantis with manual edits to ide.policy: BugTraq #4797850 Fixed; tested on Linux with 1.4.0_01 and 1.4.1_01. committed * Up-To-Date 1.12 core/manifest.mf committed * Up-To-Date 1.6 core/bootstrap/src/org/netbeans/JarClassLoader.java committed * Up-To-Date 1.6 core/bootstrap/src/org/netbeans/Main.java committed * Up-To-Date 1.13 core/javahelp/manifest.mf committed * Up-To-Date 1.7 core/javahelp/src/org/netbeans/modules/javahelp/NbDocsStreamHandler.java committed * Up-To-Date 1.4 core/localfs/manifest.mf committed * Up-To-Date 1.4 core/localfs/src/org/netbeans/modules/localfs/HostURLMapper.java committed * Up-To-Date 1.90 core/src/org/netbeans/core/NonGui.java committed * Up-To-Date 1.7 core/src/org/netbeans/core/modules/HelpHelper.java committed * Up-To-Date 1.43 core/src/org/netbeans/core/modules/Module.java committed * Up-To-Date 1.51 core/src/org/netbeans/core/modules/ModuleManager.java committed * Up-To-Date 1.25 core/src/org/netbeans/core/projects/ModuleLayeredFileSystem.java committed * Up-To-Date 1.5 core/src/org/netbeans/core/projects/cache/XMLLayerCacheManagerImpl.java committed * Up-To-Date 1.13 openide/src/org/openide/filesystems/URLMapper.java Should work with Mantis release too; cf. #4797850 resolution. Also need: committed Up-To-Date 1.26 core/src/org/netbeans/core/projects/ModuleLayeredFileSystem.java to correct a regression introduced in 1.25. closed |