Community
Participate
Working Groups
I've setup an Infocenter using Tomcat. This works as expected and the help pages are accessible within the browser. The problem is that the Infocenter cannot be used remotely. Although the content of generated TOC's can be retrieved, the loading of the help pages itself fails. It turned out that paths of the help pages contained spaces, once those characters were removed everything worked fine. My assumption is that the special characters are not escaped when requesting the remote documents.
Created attachment 148266 [details] Patch V1 Yes, I was able to reproduce this issue with a space in the folder name to a remote help document. I have added a call to URIUtil.fromString(url).toString(); to properly escape the URL special characters, and this seems to resolve the issue. I have tested this with a remote document, a local document, and a document which contains no spaces; all 3 cases work as expected. Chris G - any other test cases here?
You might want to test folders containing any of '&', '<' or '>' since these are special characters which ofter cause encoding problems. It's too bad we don't have any automated tests for remote help. I think it would be possible to automate a lot of the data retrieval and Toc merging - I should probably open a bug for that.
Well, I tried it with '&' and that seems to work. Eclipse won't let you create folders with '<' or '>' in it, so I didn't test those two.
Patch committed, Fixed.