Forums / General / Flash Player 10 + SWF files + eZ Publish 4 = problem ?

Flash Player 10 + SWF files + eZ Publish 4 = problem ?

Author Message

Michal Slocinski

Sunday 19 October 2008 2:39:11 pm

Hi,

today I installed new version of Adobe Flash Player 10.0.12.36 and noticed that flash files published in eZ Publish are not displayed. Movie is simply not loaded (at least under IE7/Vista and FF3.0.3) and after right clicking on it Flash plugin says in context menu "Movie not loaded". Old Flash Player (ver 9) didn't have any problems with it.

After some digging and testing, I found root cause of this issue - by default, eZ Publish inserts following HTTP header for all binary files:

header( "Content-disposition: attachment; filename=\"$originalFileName\"" );

above line is inside:

kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php

After removing this line movies are loaded properly.

So I did more digging over the net and found this article:

http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_print.html#head32

which explains that handling of Content-Disposition header is a new "feature" of Flash Player 10.

Basically as a solution they suggest to:
a) reconfigure HTTP server to not send Content-Disposition header for trusted Flash files
b) or other dodgy workaround in Flash file itself, which as they say may not even work in certain scenarios

I suppose this should be handled as bug in eZ Publish to provide more elegant way of dealing with Content-Disposition for SWF files and until this will happen - people should be adviced to manually fix this problem ... ?

BTW - I tried more elegant approach - stripping this header in .htaccess with:

<FilesMatch "\.swf$">
Header unset Content-Disposition
</FilesMatch>

but somehow it doesn't work for me, so for now I've to stay with hacking ezfilepassthroughhandler.php :-/

Michal

Kristof Coomans

Monday 20 October 2008 12:34:20 am

Hi Michal

Can you report this in our issue tracker please? At http://issues.ez.no/ProjectSelect.php?Id=3. Thanks!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Michal Slocinski

Monday 20 October 2008 1:13:25 am

Done: http://issues.ez.no/IssueView.php?Id=13783

Salvatore Guarino

Thursday 23 October 2008 3:02:41 am

I had the same problem, temporary solved hacking the ezfilepasstroughhandler.php.
I tried to use mod_headers also in apache virtualhost configuration file, but doesn't work...

Jostein Amlie

Tuesday 04 November 2008 11:06:27 am

The same happens with eZ 3.8.6, temporary hack for me was to move flash out of content, and into image-catalog. I have just one flash on the frontpage, so not a big problem, but i will investigate some more to make this work properly.

Kristof Coomans

Wednesday 05 November 2008 12:45:59 am

Hi

The problem was fixed by introducing a new enhancement. See the issue report for more details. Maybe the best solution is to backport this enhancement to your installations. Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org