eZP 4.2 : functioning of /content/browse, /content/copy, /content/pdf

Author Message

Pascal France

Saturday 10 April 2010 12:56:01 pm

Hi,

I have some difficulties to understand how these rules work :

Rules[]
Rules[]=access;disable
Rules[]=module;content/copy
Rules[]=module;content/browse
Rules[]=module;content/pdf

I expected that the usage of copy, browe and copy be prohibited.

In fact, I get these behaviors:

http://mysite.fr/content/copy => Erreur / kernel (3)

http://mysite.fr/content/pdf => the navigator asks me if I want to download or open the pdf file.

http://mysite.fr/content/browse => I get this error message (idem with eZP 4.3.0 - Kernel error 22 with eZP 3.10):

Fatal error: Call to a member function attribute() on a non-object in /home/solexine/public_html/kernel/content/browse.php on line 220
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

Personally, it seems to me that I should obtain 3 times the error kerl 3. No?

Thinks for your light,

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Nicolas Pastorino

Monday 12 April 2010 2:24:32 am

Hi Pascal,

this inconsistency is strange indeed. Is there any possibly conflicting rule, like 'PolicyOmitList' ?

Let us know,
Cheers !

--
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

Pascal France

Wednesday 14 April 2010 1:49:37 pm

Hi Nicolas ;-)

Well. I don't understand these behaviors. Especially the error returned by content/browse.
I did tests with a from scratch 4.3.0 and I get same results.

Maybe I misunderstand these rules.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Nicolas Pastorino

Friday 16 April 2010 1:04:29 am

I agree with you here.
If i were you, i would report this as a bug/enhancement request here : http://issues.ez.no/ezpublish

Cheers,

--
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 30 2025 00:44:26
Script start
Timing: Jan 30 2025 00:44:26
Module start 'layout'
Timing: Jan 30 2025 00:44:26
Module start 'content'
Timing: Jan 30 2025 00:44:26
Module end 'content'
Timing: Jan 30 2025 00:44:26
Script end

Main resources:

Total runtime0.0158 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.6172151.2734
Module start 'layout' 0.00490.0027 739.890636.7266
Module start 'content' 0.00760.0066 776.617294.4688
Module end 'content' 0.01420.0016 871.085933.9922
Script end 0.0158  905.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.8365140.0002
Check MTime0.00116.8520140.0001
Mysql Total
Database connection0.00063.960610.0006
Mysqli_queries0.002414.899730.0008
Looping result0.00000.119010.0000
Template Total0.00127.610.0012
Template load0.00106.165310.0010
Template processing0.00021.421610.0002
Override
Cache load0.00074.275310.0007
General
dbfile0.002113.538380.0003
String conversion0.00010.525640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs