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: | java.net.URISyntaxException: Illegal character in path at index 36: file:/Applications/NetBeans/NetBeans 6.0 Dev 200711041200.app/Contents/Resources/NetBeans/enterprise4/docs/jstl11-doc.zip | ||
---|---|---|---|
Product: | web | Reporter: | Martin Schovanek <mschovanek> |
Component: | HTML Editor | Assignee: | Marek Fukala <mfukala> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | SPACE_IN_PATH |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=7575 | ||
Issue Type: | DEFECT | Exception Reporter: | 7575 |
Description
Martin Schovanek
2007-11-08 20:47:53 UTC
java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/NetBeans Ruby IDE/ide8/docs/html40.zip at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.(URI.java:578) at org.netbeans.core.startup.layers.ArchiveURLMapper.getFileObjects(ArchiveURLMapper.java:97) at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:188) at org.netbeans.modules.extbrowser.URLUtil.createExternalURL(URLUtil.java:77) at org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer.dispatchURL(NbDdeBrowserImpl.java:304) at org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer.run(NbDdeBrowserImpl.java:281) reassigning to extbrowser for evaluation This issue has already 5 duplicates I checked the code, the problem is in the ArchiveURLMapper, it creates URI without assuring the string is RFC 2396 compliant. Passing to Radek, please reassign further if I'm wrong. I don't know why it was passed back without explanation. I provided what I found in the previous comment. The ArchiveURLMapper creates new instance of URI but doesn't check whether uses valid parameter. In my opinion it should do the check, and the adjust it accordingly. Reassigning to new module owner jskrivanek. Is it still reproduceable? Still reproducible, may be a space in path problem. CompletionDocumentation.getURL doesn't return valid URL. It must not contain spaces. You can use FileUtil.urlForArchiveOrDir(File entry) to convert File to URL or at least you should call file.toURI().toURL(). Not sure why this was reassigned to editor - the CompletionDocumentation is an interface, and so the return value of the getURL() is sole responsibility of the implementors/SPI clients, in this case: org.netbeans.editor.ext.html.HTMLCompletionQuery$DocItem already fixed |