Forums / Developer / Urls Content/download in a object tag don't work

Urls Content/download in a object tag don't work

Author Message

Sébastien Morel

Friday 14 September 2007 6:04:39 am

Hello,

I have a instance of eZ in cluster mode, so my images served with the index_cluster.php.
All work fine.

But, In a particular template, I had this code :

$object.data_map.flash.content.filepath|ezroot

This code put in the data attribute of an object tag and param tag work. eZ generated this source :

/var/xxxx/storage/original/application/9101c9985b7a0ffd1944e1aa82f070bf.swf

And the browser served correctly the flash.

But, with the cluster mode, the link to /var/xxxx/storage/original is not redirect to index_cluster.php (reserved for the content image).

So I changed the code with :

concat("content/download/",$object.data_map.flash.contentobject_id,"/",$object.data_map.flash.id,"/file/",$object.data_map.flash.content.original_filename)|ezurl}

The source generated by eZ is in this case :

content/download/6450/156032/file/flashxxx.swf

In this case, the swf is correctly served by the index.php (as the clustering is configured) but the browser don't served the flash ( only IE works correctly)
This code works only with Internet Explorer, not with Firefox

<object width="200" height="170" data="/content/download/6450/156032/file/flashxxx.swf" type="application/x-shockwave-flash">
		<param value="/content/download/6450/156032/file/flashxxx.swf" name="movie"/>
		<param name="quality" value="high"/>
		<param name="scale" value="exactfit"/>
		<param name="wmode" value="transparent"/>
		<param name="salign" value="t"/>
</object>

Maybe because the content/download path give several download headers ?

How to do that correctly with the clustering mode ?
Because I temporarily had a new RewriteRule :

Rewriterule ^/var/([^/]+/)?storage/original/.*          /index_cluster.php  [L]

But I don't think is a very good solution

Someone can help me ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Tuesday 18 September 2007 1:12:03 am

Anyone ?

My explanation is comprehensible?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

André R.

Tuesday 18 September 2007 1:47:34 am

I would suggest posting this in the issue tracker instead, since not to many forum members are on the cluster setup and those who are don't seems to do flash like this (since no one is responding).

PS: It would speed up the process if you also have a solution (patch) for it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sébastien Morel

Tuesday 18 September 2007 2:09:40 am

Ok I posted in the issue tracker :
http://issues.ez.no/IssueView.php?Id=11458&activeItem=1

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Wednesday 03 October 2007 5:49:11 am

Anyone for this bug?

I'm not sure that it's a "bug" eZ, but how do that with the cluster mode ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Nicolas Pastorino

Wednesday 03 October 2007 8:25:09 am

new comment here : http://issues.ez.no/IssueView.php?Id=11458&

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

eZ debug

Timing: Jan 18 2025 21:15:24
Script start
Timing: Jan 18 2025 21:15:24
Module start 'content'
Timing: Jan 18 2025 21:15:25
Module end 'content'
Timing: Jan 18 2025 21:15:25
Script end

Main resources:

Total runtime1.0485 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.8438180.8125
Module start 'content' 0.00700.8893 768.6563643.9297
Module end 'content' 0.89640.1521 1,412.5859341.0547
Script end 1.0485  1,753.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4236210.0002
Check MTime0.00150.1384210.0001
Mysql Total
Database connection0.00080.073210.0008
Mysqli_queries0.954591.02772050.0047
Looping result0.00250.23502030.0000
Template Total1.012696.620.5063
Template load0.00210.203820.0011
Template processing1.010596.370520.5052
Template load and register function0.00010.011310.0001
states
state_id_array0.00100.099610.0010
state_identifier_array0.00170.157920.0008
Override
Cache load0.00180.1735490.0000
Sytem overhead
Fetch class attribute can translate value0.00220.208440.0005
Fetch class attribute name0.00170.165590.0002
XML
Image XML parsing0.00200.187740.0005
class_abstraction
Instantiating content class attribute0.00000.0027120.0000
General
dbfile0.00280.2662400.0001
String conversion0.00000.000830.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs