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.
Use of FileSystem.getDisplayName in HttpServerSettings and use of FileSystem.getSystemName in JavadocServlet to produce URLs are both wrong. A filesystem display name can be any localized string, maybe with explanatory Japanese text in front. And a filesystem system name is completely arbitrary; it could be a hash code for all you know. To determine the disk directory, if any, corresponding to a filesystem root or file object, use the proper methods in NbClassPath or preferably now FileUtil (declaring dep on APIs 1.29).
assigned
getDisplayName in HttpServerSettings is definitely wrong (should be getSystemName to work with JavadocServlet). OTOH getSystemName is not so bad IMO as the servlet need to encode filesystem of given fileobject somehow without regard to implementation of FS. Maybe that it is worth to be rewritten to use URLEncoder and URLDecoder instead of its own mangling and solve multibyte characters.
Target milestone 3.3.1.
Set target milestone to TBD
I guess that current usages are OK. getDisplayName for page that lists all javadoc mount points (http://localhost:8082/javadoc/) similar to View | Documentation indices. getSystemName is properly encoded before it is returned. It could be problem if it changed during session but it is not currently the case.
I think it is OK now. BTW fs.getDisplayName() is added to HTML without any character escaping. This is probably wrong; see XMLUtil Javadoc for hints how to fix it.
Verified in 20030225.