marius
I'm new here

Preview mode – broken download actions/requests for Firefox integrated engine

Hi,

My environment:

FirstSpirit Client 4.2.437.44763

Server version: 4.2.437.44763

Java version: 1.6.0_21 32bit Sun Microsystems Inc.

Operating system: Windows 7 6.1 x86

The problem I want to report is related to the integrated preview mode in FS client when using the Mozilla Firefox browser engine.

Whenever I open a web page which contains a download link (XLS,zip, txt, PDF, DOC, …), it is impossible to download the resources file from preview mode working with Firefox integrated engine.

Here are few useful tests scenarios which might help you understanding/locating the issue:

  1. If you open in the preview mode the “http://google.com”page and search for something like “download xls file sample” you will get a list of results, where some of them represent directly download links. For example: "www.pdfpdf.com/samples/xlsdemo1.xls”  or “ http://b2bleadblog.com/files/Lead-Nurturing-Content-Catalog-Sample.xls” or “http://www.businesslink.gov.uk/Finance_files/Cash_Flow_Projection_Worksheet.xls” (I just gave more samples to point out this is not a web-server issue and this is a FS-integrated-preview-engine issue).   If you try to open any of these links (which trigger a download file action) you’ll realize the download action doesn’t work (it doesn’t start).
  2. If you create a FS script (FS client ->Template store -> Scripts) which directly opens an URL that represents an XLS file link and you execute the script (preview mode - firefox) then FS shows the integrated-engine-download-window and if you press “Save” the download starts and successfully saves the file on the local machine.

        Here is a basic script that I use:

//!Beanshell

importde.espirit.firstspirit.client.gui.applications.*;

importde.espirit.firstspirit.client.gui.applications.browser.*;

browserConfig =BrowserApplicationConfiguration.GENERATOR.invoke().title("DownloadTest");

br = context.connection.getService(ApplicationService.class).openApplication(BrowserApplication.TYPE,browserConfig).getApplication();

br.openUrl("www.pdfpdf.com/samples/xlsdemo1.xls");

Of course, in our application users should be able to navigateto the appropriate web page and download the file they need (case nr. 1).

After doing some debug, I observed the HTTP Response stream is handled before download action starts.

When doing the same test scenarios with IE browser-engine,everything works fine (from the above scenarios perspective); but, after navigating to a web page and downloading (save or open) the resources (XLS file) the page (where the download started) remains blocked and users cannot navigate to any other page after the download is done.

As the download actions are often required in our application we would definitely need to have available and working the download functionality (through the FS preview mode).

Please let me have your solution / suggestion in order to fix these problems.

Thanks,

Marius

0 Kudos
4 Replies
feddersen
Community Manager

Are you refering to the integrated preview or a BrowserApplication (AppCenter) or both? Your example scripts indicate that you're working with the integrated browsers within the AppCenter context, but you mention the preview mode several times as well.

0 Kudos

integrated browsers within the AppCenter context

0 Kudos
s_ellers
Crownpeak employee

This bug is already fixed in 4.2.439.

0 Kudos

Great. This fix probably came after I reported the bug on the helpdesk site. Thanks

0 Kudos