[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1576) Cannot download model assets from BRMS using Internet Explorer 7
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Fri Apr 25 20:27:09 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1576?page=all ]
Mark Proctor updated JBRULES-1576:
----------------------------------
Assignee: Michael Neale (was: Mark Proctor)
> Cannot download model assets from BRMS using Internet Explorer 7
> ----------------------------------------------------------------
>
> Key: JBRULES-1576
> URL: http://jira.jboss.com/jira/browse/JBRULES-1576
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-brms
> Affects Versions: 4.0.4
> Environment: Windows XP SP2, Sun JRE 1.5.0_13
> Reporter: Shahad Ahmed
> Assigned To: Michael Neale
>
> I cannot download model or decision table (i.e. spreadsheet) assets from the BRMS when using Microsoft Internet Explorer 7 (IE7). However, the same assets can be downloaded using Mozilla Firefox 2.0.
> I uploaded and saved a jar file as a model asset into the defaultPackage that is created when you first start the BRMS. However, when I attempt to download the model from the BRMS using the Download button on the model asset page nothing happens, although an error icon appears at the bottom left of the IE7 browser window. When you double-click on the error icon it reports the following javascript error:
> Line: 223
> Char: 25
> Error: Invalid Argument
> Code: 0
> http://localhost:8080/drools-jbrms/org.drools.brma.JBRMS/ E852FBEB98D9E331BF1DBDCE27A5C06F.cache.html
> I get the same error when trying to download decision tables that I've previously uploaded.
> Looking at the source code, I think I've found the problem, although it not really a bug in the code, but probably IE7 itself. The issues is in the following class in the drools-jbrms project:
> drools-jbrms\src\main\java\org\drools\brms\client\packages\AssetAttachmentFileWidget.java
> Look at the initWidgets method and then find the following onClick in the anonymous inner class ClickListner:
> dl.addClickListener( new ClickListener() {
> public void onClick(Widget w) {
> Window.open( GWT.getModuleBaseURL() + "asset?" + HTMLFileManagerFields.FORM_FIELD_UUID + "=" + uuid,
> "downloading...", "resizable=no,scrollbars=yes,status=no" );
> It appears the three dots in the message "downloading..." cause a problem for IE7. If you remove the "..." everything works fine in IE7 and Firefox. I verified this by changing the above code to:
> dl.addClickListener( new ClickListener() {
> public void onClick(Widget w) {
> Window.open( GWT.getModuleBaseURL() + "asset?" + HTMLFileManagerFields.FORM_FIELD_UUID + "=" + uuid,
> "downloading", "resizable=no,scrollbars=yes,status=no" );
> I'm afraid I haven't investigating why the dots are in issue in IE7, but I know it doesn't like spaces in pop-up window names, and I'm guessing dots aren't supported either.
> Regards
> Shahad
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list