| Summary: | Bundle image resources exposed under changing context | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Paul Kendall <pkendall64> | ||||||||||
| Component: | JFace | Assignee: | Project Inbox <rap-inbox> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | ruediger.herrmann, vasko, webmaster | ||||||||||
| Version: | 1.2 | ||||||||||||
| Target Milestone: | 1.3 M2 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Paul Kendall
Created attachment 144956 [details]
Proposed fix
This patch solves the problem in RWT. The resource manager now prepends a "resource" segment to the path of a resource.
Applied patch to CVS HEAD. The patch prevents images from being displayed. Changes are reverted. Just wanted to open a bug, as I couldn't see images. But your revert in CVS helped. Now everthing is correct again, at least for me. Created attachment 145933 [details]
Proposed fix
Created attachment 145938 [details]
Proposed fix
Slightly improved version of hte previous proposal
Applied fourth patch to CVS HEAD Our images are now gone everywhere! Analyzing it with firebug: Toolbar points to image: url(./resources/resource/static/image/blank.gif) And for example a image for a button points to: url(http://127.0.0.1:8181/resources/46.fwk1035988/icons/full/elcl16/plus_act.gif) Both urls do not show the image. In RAP demo it seems to work. Is there now some new requirement for registering images to be shown? Regards, Markus (In reply to comment #8) > Our images are now gone everywhere! > [ ... ] I cannot reproduce what you describe. Recently there was a "redirect servlet" introduced, that made it into the org.eclipse.rap.examples plug-in. Does your launch config reference this plug-in? Or does your application register a servlet for alias "/"? Please open a separate bug report if you have code or a step-by-step guide to reproduce the problem. Ok, i figured out the problem with your hint. We integrated eclipse help like in the plugin "Help integration". Now either I have working images or I have a working help. Both together now do not work anymore, which is tragic, as we need both since we do not want to develope our own help system. The help system registers at "/", but it does not seem to be changeable easyly as it looks loke all subpages of the help depend on it, or at least some of them. So this is not good for us! Do you plan on making it compatible or remove the fix to get help working again? (In reply to comment #11) > Do you plan on making it compatible or remove the fix to get help working > again? We currently investigatong, with a different use case (a redirect servlet) but cannot reliably reproduce the wrong behaviour. We are not convinced that this change causes the missing images. In the meanwhile you can revert the patch for yourself. (apply path -> reverse patch check box) Please let us know whether your problem persists after reverting the changes. Cool, did not know that you can revert a patch since there is no direct menu entry for it, just applay patch. Anyways, after reverting the path the images are visible and help also works. So it is this change that causes the problem. Are you further invastigating? Or can you reproduce the problem adding "Help integration" to RAP Demo? Shouldn't you revert this patch in CVS until problems with "Help integration" are solved and reopen this bug, or should someone open a new bug on this problem? (In reply to comment #14) > Are you further invastigating? Or can you reproduce the problem adding "Help > integration" to RAP Demo? The problems with "Help integration" are solved now Changes are in CVS HEAD. > Shouldn't you revert this patch in CVS until problems with "Help integration" > are solved and reopen this bug, or should someone open a new bug on this > problem? Cool, need to check it right away. Was there a change now in "Help Integration" or somewhere else in RAP Plugins? OK, seems that there was only one change in one class. Everything looks good now. Thank you for fixing this. Good work. |