cancel
Showing results for 
Search instead for 
Did you mean: 

IVE fails to rewrite GWT 2.0.3 with CSS in a ClientBundle

Tecsisa_
Not applicable

IVE fails to rewrite GWT 2.0.3 with CSS in a ClientBundle

Hi

We have found a bug in the IVE of Juniper SA-4000 version 6.5R8 :

An application using GWT 2.0.3 with CSS in a ClientBundle has CSS rules that include images as background.

When accessing the application from the Internet the IVE has to  rewrite all URLs, example:

Real URL:

http://privateserver.domain.com/img/logo.gif

Rewritten URL:

../img/,DanaInfo=privateserver.domain.com+logo.gif

The problem:

URLs are not rewritten in the CSS rules that are part of a ClientBundle in Firefox or Chrome as it does in Internet Explorer. The CSS rules that are part of a ClientBundle are written by GWT compiler to the HTML page between Style tags using JavaScript.

Example:

In CCS;

       @external sesion;

                #sesion{

                               background-image:        url(img/sesion.gif);

                               background-repeat:      no-repeat;

                }

In Internet Explorer, the URL for the image is rewritten:

<SCRIPT defer>

…

</SCRIPT>

…

<STYLE>

HTML {

FONT-SIZE: 145%

}

                #sesion{

                               background-image:        url(../img/,DanaInfo=privateserver.domain.com+sesion.gif);

                               background-repeat:      no-repeat;

                }

In Firefox or Chrome the URL for the image is not rewritten:

                #sesion{

                               background-image:        url(img/sesion.gif);

                               background-repeat:      no-repeat;

                }

Thanks