Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Help Contents in 3.6.2 / 3.7.0
Help Contents in 3.6.2 / 3.7.0 [message #718275] Tue, 23 August 2011 19:31
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
Hey all.
I am running into a difference between how help is processed when viewing
context-sensitive help and when viewing the help contents.

My help is contained in PDF files stored in the local file system.
Currently, there is nothing I can do to change where the help is stored (it
is part of how 3rd parties contribute their product manuals to our RCP).

When I view it in the help contents, my URLs all have the form:
http://127.0.0.1:58793/help/topic/file:/C:/myrcp/help/manuals/filename.pdf

This used to be fine and the
org.eclipse.help.internal.webapp.servlet.EclipseConnector's "transfer" was
called, the check to see if the topic began with "file:" succeeded, and the
file was loaded. Then, I believe to prevent a scripting attack, an extra
check ("&& UrlUtil.wasOpenedFromHelpDisplay(url)") was added. The problem
is, this is always returning false for my help documents and I end up with
"Topic not found". Everything works fine when the same documents are
accessed via context-sensitive help.

When I built on 3.6.2, I simply removed the check in my RCP. No surprise,
when I started building against 3.7.0, the problem cropped up again. So,
I'm guessing I should probably find the correct solution to the problem.
Can someone guide me on what I need to do to make
UrlUtil.wasOpenedFromHelpDisplay return true?

Thanks.

James
Previous Topic:Customize MarkerSupportView ?
Next Topic:How can I save custom state in multi perspectives?
Goto Forum:
  


Current Time: Thu Apr 25 21:49:12 GMT 2024

Powered by FUDForum. Page generated in 0.02301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top