Home
Analytics
Charts in Firefox 18.0.1
zax
Hi,
OS: Windows 7
Browser: Mozilla Firefox (18.0.1)
BIRT Runtime Version: 3.7.1
Yesterday I deployed some reports I was work on onto a server and ran them in Firefox. To my surprise I saw the following bar at the top of the browser window:
Find more posts tagged with
Comments
kclark
Can you check to see if the plugins are the most recent in Firefox? If not you could try upgrading them.
zax
After clicking "Check to see if your plugins are up to date" in the Add-ons Manager, they all seem to be OK. Are you able to repeat this? Several other users are now complaining of this. I will try and see if there is any kind of Mozilla bug report tomorrow.
Stephen
kclark
I'm running 18.0.1 and everything seems to be working fine for me. How are you deploying the reports?
kclark
What is the format of the charts? I was able to reproduce this error by changing the format to SVG. When I swtiched to PNG everything worked fine.
Clement Wong
Stephen,<br />
<br />
The root cause of the behavior you are seeing is because in BIRT 3.7.2, the MIME Content-Type returned for SVGs is "image", and Firefox 18 is not behaving like previous versions, or like other browsers such as IE or Chrome.<br />
<br />
The MIME Content-Type should be "image/svg+xml". In BIRT 4.2.1, it is returning the correct MIME Content-Type and works properly in Firefox 18.0.1.<br />
<br />
Is it possible for you use BIRT 4.2.1? It's working there.<br />
<br />
Can you use the latest commercial Actuate BIRT (Actuate 11 SP4 Fix1)? It's working there also.<br />
<br />
If you must use BIRT 3.7.1, then you'll need to patch and rebuild org.eclipse.birt.report.viewer, specifically the <em class='bbc'>AbstractRenderImageActionHandler</em> class. It's located in viewservlets.jar under org\eclipse\birt\report\service\actionhandler.<br />
<br />
Here's the source in 3.7.2:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>public abstract class AbstractRenderImageActionHandler extends AbstractBaseActionHandler
{
public AbstractRenderImageActionHandler(IContext context, Operation operation, GetUpdatedObjectsResponse response)
{
super(context, operation, response);
}
public void __execute() throws Exception
{
this.context.getResponse().setContentType("image");
String imageId = this.context.getRequest().getParameter("__imageid");
String docName = null;
InputOptions options = new InputOptions();
options.setOption("request", this.context.getRequest());
ServletOutputStream out = this.context.getResponse().getOutputStream();
getReportService().getImage(docName, imageId, out, options);
}
}</pre>
Here's the source in 4.2.1:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>public abstract class AbstractRenderImageActionHandler extends AbstractBaseActionHandler
{
public AbstractRenderImageActionHandler(IContext context, Operation operation, GetUpdatedObjectsResponse response)
{
super(context, operation, response);
}
public void __execute() throws Exception
{
HttpServletRequest request = this.context.getRequest();
HttpServletResponse response = this.context.getResponse();
String docName = null;
String imageId = request.getParameter("__imageid");
response.setContentType(imageId.endsWith(".svg") ? "image/svg+xml" : "image");
ServletOutputStream out = response.getOutputStream();
InputOptions options = new InputOptions();
options.setOption("request", request);
getReportService().getImage(docName, imageId, out, options);
}
}</pre>
zax
Thanks Clement, upgrading the runtime on the server to 4.2.1 seemed the most sensible thing to do and everything works fine now. Thank you for the support.
Thanks again,
Stephen
rveeraraghav
<p>Hi Clement,</p><p> We are using Birt 3.7.2 and are experiencing the same problem described above, If I decide to move to Birt 4.2.1 ( or 4.3.2 ), will I have problems using it in conjunction with iHub2 which I believe is using 3.7.2? We have not installed iHub2 yet, but once we do so( which could be soon), will I have issues with my reports? In other words, will iHub2 be able to read reports saved under Birt 4.2.1 or 4.3.2 ?</p><p>Thanks,</p><p> Ravi</p>
Clement Wong
<p>Ravi,</p><p> </p><p>iHub3 provides Open Source BIRT 4.3 Support.</p><p style="margin-left:40px;">
<em>"The Actuate technology and products are rooted in the BIRT Open Source Project, which is a top level project under the Eclipse Foundation, one of the leading open source community groups. As such the BIRT project is aligned with the Eclipse major releases, of which Kepler is the latest.</em></p><p style="margin-left:40px;"> </p><p style="margin-left:40px;"><em>BIRT iHub 3 is updated for engine compatibility with the latest Eclipse OS 4.3.x release. Similarly, the user experience of the BIRT Designer Professional authoring tool has been aligned with the latest developments of the Eclipse 4.3.x look and feel."</em></p><p> </p><p>The Summary of New Features in iHub3 @ <a data-ipb='nomediaparse' href='
http://www.actuate.com/download/whitepapers/BIRT-iHub-3-TSNF.pdf'>http://www.actuate.com/download/whitepapers/BIRT-iHub-3-TSNF.pdf</a></p>
;