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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:18:37
Script start
Timing: Jan 19 2025 00:18:37
Module start 'layout'
Timing: Jan 19 2025 00:18:37
Module start 'content'
Timing: Jan 19 2025 00:18:38
Module end 'content'
Timing: Jan 19 2025 00:18:38
Script end

Main resources:

Total runtime0.6954 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.9453152.6406
Module start 'layout' 0.00570.0024 742.585939.4766
Module start 'content' 0.00810.6859 782.0625638.8359
Module end 'content' 0.69400.0014 1,420.898420.1250
Script end 0.6954  1,441.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5073160.0002
Check MTime0.00140.1999160.0001
Mysql Total
Database connection0.00100.150010.0010
Mysqli_queries0.613088.1386680.0090
Looping result0.00070.1019660.0000
Template Total0.665895.720.3329
Template load0.00230.328120.0011
Template processing0.663595.400720.3317
Template load and register function0.00010.011810.0001
states
state_id_array0.00140.207510.0014
state_identifier_array0.00090.130420.0005
Override
Cache load0.00210.2970490.0000
Sytem overhead
Fetch class attribute can translate value0.00090.131430.0003
Fetch class attribute name0.00130.179890.0001
XML
Image XML parsing0.00150.222030.0005
class_abstraction
Instantiating content class attribute0.00000.0038120.0000
General
dbfile0.00100.1505290.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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