Images not visible [message #1231564] |
Wed, 15 January 2014 00:22 |
|
Hi all,
in a production environment we have a large number of clients using IE8.
On these clients all images (upper banner, button and label images, images for radiobuttons, etc...) are just invisible!
The same application works well instead with IE9..11 and with FF and Chrome.
It seems like the problem is getting images that are into the deployed plugin-jars.
What could be the reason?
Thank you
Vincenzo
|
|
|
|
Re: Images not visible [message #1233027 is a reply to message #1231648] |
Sat, 18 January 2014 11:31 |
|
Hi Ivan,
we are using RAP 2.2.
We tested the RAP Demo and the images are ok, also on those problematic IE8 clients!
One of the differences from the RAP Demo app and our RAP application is that our application has a filter in web.xml (this is a mandatory constraint from the customer: it is used for authorization access).
<filter>
<filter-name>AuthFilter</filter-name>
<filter-class>authfilter.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>AuthFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
May this be a cause for blocking the images?
Note that we are getting images with the standard RCP way, e.g.
Activator.getImageDescriptor("icons/send.png")
(and yes, images are exported in build.properties)
How this way differ from the standard web ("href=...") way?
Thank you
Vincenzo
|
|
|
Re: Images not visible [message #1233352 is a reply to message #1231648] |
Sun, 19 January 2014 10:59 |
|
Hi Ivan,
sorry, I can't create a test project to demonstrate the problem: the issue happens only when the war is deployed into the customer Tomcat server; further, the application has a filter in web.xml for authentication (the app is launched from a portal with a link).
More, the problem happens with clients with IE8 and security settings for their Intranet.
But we have some info that may help: not all images are invisible (see attachments).
For example the image with the X on the tab for closing a view is visible!
The same is valid for the drop down arrow showed in a Combo.
Instead the images for the radiobuttons (for selection) are invisible (the business.css has the tag
Button-RadioIcon {
background-image: url( theme/resources/button/radio-unselected.png );
}
)
Also images on Buttons are invisible.
Does this help to understand what is happening?
We just want to show images, so any suggestion on alternative ways to do this (via CSS or whatever) is greatly, greatly welcome.
Thank you very much!
Vincenzo
|
|
|
|
Re: Images not visible [message #1233720 is a reply to message #1233641] |
Mon, 20 January 2014 10:28 |
|
Hi Ivan,
thank you!
However we are making some progress: if we remove the web.xml filter, then all is ok: all images are showed also with those problematic IE8 clients.
How can we relax this filter with RAP: I mean, now the filter is "/*", so it filters everything, including images (it usually handles JSP pages, so often other application set it to /*.jsp for example)?
Thank you
Vincenzo
|
|
|
Re: Images not visible [message #1234180 is a reply to message #1233720] |
Tue, 21 January 2014 12:18 |
|
Analyzing the Tomcat logs we see that requests are like the following:
"GET /myapp/mycontext HTTP/1.1" 200 198
"GET /myapp/mycontext HTTP/1.1" 200 3393
"GET /myapp/rwt-resources/themes/images/ee7d83c5.png HTTP/1.1" 200 2962
"GET /myapp/rwt-resources/resources.js HTTP/1.1" 200 20000
"GET /myapp/rwt-resources/rap-client.js HTTP/1.1" 200 1055423
"GET /myapp/rwt-resources/rap-rwt.theme.Fallback.json HTTP/1.1" 200 26843
"GET /myapp/rwt-resources/rap-rwt.theme.Custom_c072efd1.json HTTP/1.1" 200 54588
"POST /myapp/mycontext?cid=fcc2887c HTTP/1.1" 200 21297
"GET /myapp/rwt-resources/generated/fb89ea96.gif HTTP/1.1" 200 60
"GET /myapp/rwt-resources/resource/static/image/blank.gif HTTP/1.1" 200 49
"GET /myapp/rwt-resources/generated/aa12df6e.png HTTP/1.1" 200 2922
"GET /myapp/rwt-resources/generated/e72329fd.png HTTP/1.1" 200 1016
"GET /myapp/rwt-resources/generated/145f7d1e.png HTTP/1.1" 200 2813
"GET /myapp/rwt-resources/generated/8cbbb32c.png HTTP/1.1" 200 2832
"GET /myapp/rwt-resources/generated/96adb740.gif HTTP/1.1" 200 3458
"GET /myapp/rwt-resources/themes/images/ad06bd9.png HTTP/1.1" 200 3066
"GET /myapp/rwt-resources/generated/f51f7aab.png HTTP/1.1" 200 2792
"GET /myapp/rwt-resources/generated/6b8f29e4.png HTTP/1.1" 200 2809
"GET /myapp/rwt-resources/generated/c1495f4f.png HTTP/1.1" 200 2809
"GET /myapp/rwt-resources/generated/d8776814.png HTTP/1.1" 200 2812
"GET /myapp/rwt-resources/generated/27157334.png HTTP/1.1" 200 2811
"GET /myapp/rwt-resources/generated/10c4785d.png HTTP/1.1" 200 2847
"GET /myapp/mycontext?servicehandler=org.eclipse.rap.serverpush&cid=fcc2887c HTTP/1.1" 200 -
"POST /myapp/mycontext?cid=fcc2887c HTTP/1.1" 200 2844
"POST /myapp/mycontext?cid=fcc2887c HTTP/1.1" 200 45
"POST /myapp/mycontext?cid=fcc2887c HTTP/1.1" 200 45
"POST /myapp/mycontext?cid=fcc2887c HTTP/1.1" 200 22914
"GET /myapp/rwt-resources/themes/images/ae8b4acf.png HTTP/1.1" 200 2881
As you can see there are requests for .png and .gif files that have a different URL pattern.
So we tried to replace the generic "/*" filter with a more specific one (hoping to allow the images not to be filtered)
<filter>
<filter-name>MyFilter</filter-name>
<filter-class>filterlib.FilterClass</filter-class>
</filter>
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/myapp/mycontext/*</url-pattern>
</filter-mapping>
but images are not shown again!
In the end: without doubt the problem is caused by the filter (in fact just removing it causes all the images to show correctly), but how can we change the filter url-pattern in order to make the images pass?
The hint must be related with another question: why some image (1) are visible also with the filter? How the loading mechanism differs from the ones that are not shown (2)?
Thank you
Vincenzo
(1) the image for the X on the Tab for Closing a View
(1) the DropDown triangle image on the right side of a Combo box
(2) the Radio Buttons selected/unselected icons
(2) the images on a Button
|
|
|
|
Re: Images not visible [message #1234407 is a reply to message #1234316] |
Tue, 21 January 2014 22:48 |
|
Hi Ralf!
Quote:it seems that you can have mulitple url-patterns in a filter-mapping
[1]. Does that help?
it may, but I have some difficulties in understanding the severals requests (see the Tomcat log in previous message) that RAP is sending (I would just 'exclude' *.png, *.gif and so on)
Quote:
> The hint must be related with another question: why some image (1) are
> visible also with the filter? How the loading mechanism differs from the
> ones that are not shown (2)?
Could this difference be caused by theming images being kept in the
browser cache and others not?
At first we also thought about a cache problem, but if we remove the filter the images are ok; then if we set the filter the images are ko, for the same client, just like a on/off switch.
So it does not seem to be caused by a cache-effect, there must be a deterministic cause ...
It's incredible: we have some images showing correctly, but are unable to apply the same way for the others.
Thank you
Vincenzo
|
|
|
Re: Images not visible [message #1235019 is a reply to message #1234316] |
Thu, 23 January 2014 11:10 |
|
Hi Ralf,
ok, I am trying to follow this suggestion (multiple filters), I just need some help in understanding the RAP requests.
If I set the url-pattern to:
the filter is not applied, nor to the application, neither to the images. So that's not good.
The same happens with the following url-patterns:
If I set the url-pattern to:
the filter is applied, both to the application and to the images. So that's not good.
On the other side Servlet filters does not support exclusions (I would like to exclude all images from the filter for example).
The url-pattern can be also set by extensions, like "*.jsp", but this seems to be useless in this case I think.
Do you have any suggestion on what pattern should I use?
Thank you very much
Vincenzo
|
|
|
|
|
Re: Images not visible [message #1236507 is a reply to message #1235892] |
Mon, 27 January 2014 11:22 |
|
Hi Ralf, Ivan,
I attached the image of the test.
As you can see not all images are hidden.
Can you give us a hint on how to solve the issue?
Any workaround is welcome.
Thank you very much.
Vincenzo
|
|
|
|
Re: Images not visible [message #1237493 is a reply to message #1237238] |
Wed, 29 January 2014 21:19 |
|
Hi Ivan,
no, I haven't a proxy or reverse proxy setup.
I attached your workbench demo application screenshot with the missing icons highlighted.
I bet you can easily spot why some of them are missing and others not.
If you can suggest what RAP source plugin we can import as source and modify somewhere, in order to solve the problem, well, you are greatly welcome!
Thank you very much.
Vincenzo
|
|
|
|
|
|
Re: Images not visible [message #1238074 is a reply to message #1238050] |
Fri, 31 January 2014 10:26 |
|
Hi Ivan,
my compliments to the entire RAP Team!
Now, what path should I follow for deploying a new war?
1) for what I have understood one option may be switch back to RAP 2.1 (I am using a Target platform definition file)
2) the other option is to use the just fixed version on master. But in this case, how do I proceed? Just check out (over my current RAP 2.2 target platform) the fixed plugin from the master and include it in the deployment process?
What is your advice?
Thank you very much
Vincenzo
|
|
|
|
Powered by
FUDForum. Page generated in 0.02852 seconds