Community
Participate
Working Groups
In the Eclipse Preferences -> Help -> Content, the 'Test Connection' button only checks to see if the server is available. It should verify that the the path is a valid Information Center.
The current plan will be to check something in the toc, like help/advanced/tocfragment to make sure valid xml is returned.
Also - this should be added to the Network Status Error page as well.
Created attachment 181104 [details] Validates toc servlet, instead of index.jsp
Thanks Snehasish. Could you also modify the Network Status Page to use TestConnectionUtility when verifying which IC's are available?
Created attachment 181195 [details] Validates toc servlet, instead of index.jsp url, also reused for Network status page 1. TestConnectionUtility.java validates the toc servlet and not index.jsp for test connection. 2. TestConnectionUtility.java is moved from org.eclipse.help.ui plugin to org.eclipse.help.base, package: org.eclipse.help.internal.base.util. 3. In RemoteStatusData::checkSitesConnectivity(..) method reuses TestConnectionUtility class for validating test connection.
Created attachment 181416 [details] Final Patch Thanks Snehasish. Looks pretty good - I did add one change however. We now check the toc url to see if '<tocContributions>' is present; this way we know that /toc is not a generic site error page, but an eclipse toc xml page.
Patch committed to HEAD.
Created attachment 181423 [details] Fix compile error There is a compilation error when compiled with a Java 1.4 JRE, which is the setting for org.eclipse.help.base. I have attached a suggested patch ( I have not tested the patch ).
Setting state to reopened pending fixing of the compile error. Chris A, please take a look at my patch and commit it if it looks OK.
Created attachment 181429 [details] jdk1.4 compliant patch The patch you submitted seemed to be for a different issue. I saw the compile error once I ensured my workspace had an available 1.4 compiler, and so I resolved it with this jdk1.4 compliant patch.
I must have submitted the wrong patch. In any case you can set the status back to Fixed.
Patch committed to HEAD (again).
*** Bug 314148 has been marked as a duplicate of this bug. ***