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

eZ debug

Timing: Jan 18 2025 10:42:38
Script start
Timing: Jan 18 2025 10:42:38
Module start 'content'
Timing: Jan 18 2025 10:42:39
Module end 'content'
Timing: Jan 18 2025 10:42:39
Script end

Main resources:

Total runtime1.7850 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0116 587.8359180.8203
Module start 'content' 0.01161.5578 768.6563652.7109
Module end 'content' 1.56940.2155 1,421.3672337.0625
Script end 1.7850  1,758.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.2757210.0002
Check MTime0.00160.0891210.0001
Mysql Total
Database connection0.00100.057910.0010
Mysqli_queries1.696295.02302070.0082
Looping result0.00250.14082050.0000
Template Total1.721296.420.8606
Template load0.00210.118620.0011
Template processing1.719196.307620.8595
Template load and register function0.00040.020910.0004
states
state_id_array0.00310.174310.0031
state_identifier_array0.00480.268920.0024
Override
Cache load0.00180.0990370.0000
Sytem overhead
Fetch class attribute can translate value0.00140.078550.0003
Fetch class attribute name0.00110.061980.0001
XML
Image XML parsing0.00170.097450.0003
class_abstraction
Instantiating content class attribute0.00000.000990.0000
General
dbfile0.00360.2043340.0001
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs