Forums / General / eZ Publish 4.1 alpha2 and object states

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

eZ debug

Timing: Jan 18 2025 14:55:00
Script start
Timing: Jan 18 2025 14:55:00
Module start 'content'
Timing: Jan 18 2025 14:55:00
Module end 'content'
Timing: Jan 18 2025 14:55:00
Script end

Main resources:

Total runtime0.8424 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.7266180.8359
Module start 'content' 0.00730.6750 768.5625613.7734
Module end 'content' 0.68230.1601 1,382.3359337.3750
Script end 0.8424  1,719.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5339210.0002
Check MTime0.00170.1986210.0001
Mysql Total
Database connection0.00080.097510.0008
Mysqli_queries0.749989.01362020.0037
Looping result0.00220.26622000.0000
Template Total0.817997.120.4090
Template load0.00230.275320.0012
Template processing0.815696.811320.4078
Template load and register function0.00020.017910.0002
states
state_id_array0.00060.076110.0006
state_identifier_array0.00090.108320.0005
Override
Cache load0.00200.2352310.0001
Sytem overhead
Fetch class attribute can translate value0.00190.219940.0005
Fetch class attribute name0.00180.213980.0002
XML
Image XML parsing0.00550.656940.0014
class_abstraction
Instantiating content class attribute0.00000.0025100.0000
General
dbfile0.01061.2632390.0003
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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs