Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359253 - [Help] Support for query part in hrefs
Summary: [Help] Support for query part in hrefs
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.6.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: platform-ua-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 11:08 EDT by Riccardo Mising name CLA
Modified: 2019-11-14 03:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Mising name CLA 2011-09-28 11:08:17 EDT
Build Identifier: M20110210-1200

Since the extension point org.eclipse.help.contentProducer allows help content, which is dynamic, generated at run time by an implementation of the interface IHelpContentProducer, it should be possible to use a query in a href. The query (a series of field-value pairs) can than be used to pass additional informations to the content producer.

At the moment it seems that this only works partial and atleast not for provided IContentExtensions. For example I use my own class which extends AbstractContentExtensionProvider to contribute content extensions dynamicly and I want to create the content (determined by the return value of getContent() of my provided IContentExtensions which is treated as the path to the content) dynamicly to via a IHelpContentProducer. If I use a query part in the returned value (eg. /myPluginId/myContent.xhtml?field1=value1#elementId), the href which is passed to my content producer is messed up with to question marks (myContent.xhtml?field1=value1?lang=de_DE).

Reproducible: Always
Comment 1 Chris Goldthorpe CLA 2011-09-29 11:58:31 EDT
I agree that the query should be passed through to the content producer. Is use of a content producer in conjunction with a content extension provider the only case you know of that is causing problems?
Comment 2 Riccardo Mising name CLA 2011-09-30 07:37:44 EDT
In the case of a content extension via XML the same problem occures, if a query is used in the "content" attribute.

If I use a query in the href for topics it works as expected, because in this case the addional query (?lang=de_DE) is not appended by the help plugins of the platform.

I think the difference is, that the call to getInputStream(String bundle, String href, Locale locale) of my content producer comes (indirect) from the method getHelpContent of the class HelpProvider for content extensions whereas the class HelpProvider seems not to be involved for the content of topics.

I don't know why the query part (?lang=de_DE) is appended to the href at all, because the informations of the locale are correctly passed to the content producer as the third parameter (eg. getInputStream( "myPluginId", "myContent.xhtml?field1=value1?lang=de_DE", de_DE )).
Comment 3 Lars Vogel CLA 2019-11-14 03:30:53 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.