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: | URISyntaxException: Illegal character in path at index 67: http://plugins.netbeans.org/nbpluginportal/files/nbms/18954_RelaxNg File Support (NetBeans 6.7.1).nbm | ||
---|---|---|---|
Product: | updatecenters | Reporter: | Jesse Glick <jglick> |
Component: | Pluginportal | Assignee: | Jiri Kovalsky <jkovalsky> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | dlipin, epdv, jkovalsky, mbalin |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jesse Glick
2009-10-30 13:15:44 UTC
Michale, does Jesse's suggestion sound good to you? It's been a month, and dozens of these exceptions appear in everyone's log file - no progress? Does this component have an owner? Is this a problem of incorrectly generated Plugin Portal catalogue or a defect in Plugins manager? Incorrect catalog. Example entry: distribution="http://plugins.netbeans.org/nbpluginportal/files/nbms/18954_RelaxNg File Support (NetBeans 6.7.1).nbm" This is not a valid URL. Dmitry, do you think you could implement Jesse's suggestion? If a URISyntaxException is hit, try the new URI(null, relpath, null).getRawPath() to see if the URI class will convert the illegal characters correctly. Thanks for your reply. Dmitry, do you think you could implement Jesse's suggestion? If a URISyntaxException is hit, try the new URI(null, relpath, null).getRawPath() to see if the URI class will convert the illegal characters correctly. Thanks for your reply. The filename should be encoded unconditionally, there is no need to wait for a URISyntaxException; there could be URIs which are well-formed but incorrect: e.g. if a file 100%FeelsGreat.nbm is encountered, http://.../100%FeelsGreat.nbm might be a valid URL but it points to something other than what was intended. I can't say what exactly the code should do since (as far as I know) I do not have access to the server source code. *** Bug 178408 has been marked as a duplicate of this bug. *** I updated the pluginportal code so the filenames are now url encoded so there should not be any illegal things like spaces... |