Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 430858

Summary: HTTP Status 404 - The requested resource (ProxyServlet: /myApplication/static/image/blank.gif)
Product: [RT] RAP Reporter: ANS <ans.mail>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P2 CC: ans.mail, ivan
Version: 2.2   
Target Milestone: 2.3 M3   
Hardware: All   
OS: All   
Whiteboard:

Description ANS CLA 2014-03-21 05:16:48 EDT
Some users are forced to use IE9!
The blank.gif resource is not found and causes 404.

In combination with a load balancer this leads to switching to another server which got the same problem and then you have session timeout for all users, even if they are not using IE9!

This behaviour is not present in RAP2.1 SR1 but in RAP2.2 and has its possible reason in the fixing of Bug 422974.

It would be great to have a patch version auf Text.js and maybe Client.js.

Thank you....
Comment 1 ANS CLA 2014-03-21 05:29:08 EDT
Maybe this helps:

The "myApplication" has a Login Dialog before the application (the workbench) starts. There is of course an SWT.Text control...
Comment 2 Ivan Furnadjiev CLA 2014-03-21 07:04:30 EDT
It's interesting why balnk.gif is not found? I can reproduce it with Controls Demo in IE9 and current RAP from master.
Comment 3 ANS CLA 2014-03-21 07:13:29 EDT
Hi Ivan,

I think there is a path missing in TEXT.js.
The path for blank.gif in Image.js is defined differently...
Comment 4 Ivan Furnadjiev CLA 2014-03-21 07:32:53 EDT
Already saw it... thanks for the hint anyway. Working on a fix.
Comment 5 ANS CLA 2014-03-21 07:48:56 EDT
Hi Ivan,

maybe it makes sense to look around in all js and binary files for dotted-white and blank gif.

I was not drilling to deep in all that js because its hard to understand for an outstanding person why sometimes and sometimes not the common resource path prefixes the static resource path. So there is the risc of other pitfalls.
which may affect the whole rap-client.js.

I hope I'm wrong with that...
or it solves some other problems with IE9 as well?
Comment 6 Ivan Furnadjiev CLA 2014-03-21 08:28:28 EDT
We have only two places with broken blank.gif image - Composite.js and Text.js. dotted_white.gif is not used anywhere and will be removed.
Comment 7 ANS CLA 2014-03-21 08:56:22 EDT
Good news, only one more...
Do you think this has side effects on other known bugs (concerning IE9)?
Comment 8 Ivan Furnadjiev CLA 2014-03-21 09:03:25 EDT
No... It seems that the workarounds with blank.gif background image in Composite/Text.js work even with missing image.
Comment 9 Ivan Furnadjiev CLA 2014-03-21 12:10:09 EDT
Fixed in master with change https://git.eclipse.org/r/23718
Comment 10 ANS CLA 2014-03-21 12:21:27 EDT
Hi Ivan,

lots of thanks for your immediate work.

The first question is, will there be a patch for RAP2.2 consisting of a new Composite.js, Text.js and perhaps Client.js.
I need only the files and then I think it is easy to put them into the RWT2.2 plugin and delete the old ones.

The second question is, if so, when do you think is such a patch or the file(s) availabe?

For us the answers are very important, because we need to know how to go on with our latest release. I switched the target back to RAP2.1 SR1, but this has some minor errors too. We also have the possibility to turn off load balancing for a while.

But the nicest thing for us is to replace the error-js files with your new ones.
Comment 11 ANS CLA 2014-03-21 12:23:23 EDT
Sorry,

the actualisation of my browser didi nothing.
I saw your solution after saving my comment....
Comment 12 ANS CLA 2014-03-31 07:22:22 EDT
Hi Ivan,

I put the diff from your patch into the files text.js and composite.js of the final RAP 2.2 release.
But IE 9 still does not find blank.gif.

Is there another location I missed?
For example Widget.appearances.js?
Client.js has also a textual reference to blank.gif.

Or am I patching in the wrong way? 
Currently I only change the above mentioned files and replace them in the rwt jar file. Is that correct?
Comment 13 Ivan Furnadjiev CLA 2014-03-31 07:31:01 EDT
Are you running your application in "development mode" (launch config "development mode" checkbox checked)? If not, did you rebuild client.js with ClientBuilder from releng folder?
Comment 14 ANS CLA 2014-03-31 08:07:54 EDT
(In reply to Ivan Furnadjiev from comment #13)
> Are you running your application in "development mode" (launch config
> "development mode" checkbox checked)? If not, did you rebuild client.js with
> ClientBuilder from releng folder?

No I did not rebuild client.js. I did not know about that missing link...
I will try that. Thank you very much
Comment 15 Ivan Furnadjiev CLA 2014-03-31 08:18:47 EDT
You could try the latest nightly RAP build [1] to ensure that the issue is fixed.

[1] http://eclipse.org/rap/downloads/