eZ Publish 4.1 alpha2 and object states

Author Message

Alain Sahli

Wednesday 18 February 2009 11:46:48 am

Hi !

I tested the alpha2 with the ezwebin package. I tried to change the object state of the frontpage (lock). After this I couldn't do anything. But I had an administrator account.

Finally I added a new policy to the administrator role (content - edit - no limitations) and I could modify the frontpage.

This is strange not ? Because the administrator role has a "all modules - all function - no limitations" policy...

I think that the new object state feature don't respect the all modules and all functions policy. Is this a bug ?

I'm excited to play a little bit with this new feature :-)

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Andreas Kaiser

Friday 06 March 2009 2:49:57 am

Same problem here with but with ezpublish 4.1 beta1 and plain_site (using administration) and in my case I added a "content - all function - no limitations" to get access to the locked object.

In my opinion if administrator role has "all modules - all function - no limitations" policy enabled a extra policy for content should be not necessary.

Perhaps you should open a issue, couldn't found any in the tracker.

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Andreas Kaiser

Friday 06 March 2009 3:20:59 am

I found a even stranger situation.

By default admin role has following policy (and lock state objects can't be edited):

1 "all modules - all function - no limitations"

But if you create a second policy again with:

"all modules - all function - no limitations" (deafult policy)
"all modules - all function - no limitations" (added policy)

the locked objects can be readed! So the second "all modules - all function - no limitations" policy works like it should...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Alain Sahli

Friday 06 March 2009 5:26:46 am

I opened an Issue here : http://issues.ez.no/IssueView.php?Id=14571&activeItem=1

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Kristof Coomans

Saturday 07 March 2009 9:39:42 am

Hi

The lock state you used is not supposed to be used by end users, it's an internal state that will be used by WebDAV and the policy limitations for it are implicit (they do not have to be added to all roles by the admin, they are automatically inserted by eZ Publish). Unfortunately the current code still allows this state group to be used in the GUI, didn't have time to finish it before I left eZ Systems. So the issue is valid and will hopefully be tackled before a release candidate.

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

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 18 2025 18:31:49
Script start
Timing: Jan 18 2025 18:31:49
Module start 'layout'
Timing: Jan 18 2025 18:31:49
Module start 'content'
Timing: Jan 18 2025 18:31:49
Module end 'content'
Timing: Jan 18 2025 18:31:49
Script end

Main resources:

Total runtime0.5631 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.4375152.6250
Module start 'layout' 0.00510.0029 742.062539.4453
Module start 'content' 0.00800.5538 781.5078608.6953
Module end 'content' 0.56180.0013 1,390.203116.1563
Script end 0.5631  1,406.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.6077160.0002
Check MTime0.00160.2775160.0001
Mysql Total
Database connection0.00080.142610.0008
Mysqli_queries0.505589.7691650.0078
Looping result0.00050.0957630.0000
Template Total0.535895.120.2679
Template load0.00180.318620.0009
Template processing0.534094.827220.2670
Template load and register function0.00010.017610.0001
states
state_id_array0.00080.137610.0008
state_identifier_array0.00090.157520.0004
Override
Cache load0.00150.2708310.0000
Sytem overhead
Fetch class attribute can translate value0.00100.170530.0003
Fetch class attribute name0.00100.169680.0001
XML
Image XML parsing0.00140.248830.0005
class_abstraction
Instantiating content class attribute0.00000.0066100.0000
General
dbfile0.00100.1717280.0000
String conversion0.00000.001840.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs