User and permission handling buggy?

Author Message

Claus Jensen

Wednesday 28 January 2004 6:15:08 am

Hi,
Im having problems when I add some new attributes to my user class and save it. I had a permission set that was working before, but now it seems that it doesn't work any more, because Im getting "no access" when I just minutes before the update was able to see the content.

Here is my role permission settings for the anonymous user, one of the users that suddenly can't see any content after the update of the user class:
--------
user login *
content read Subtree( Offentlig informasjon fra Pandagruppen ) , Class( Folder , Info page , Link , File , Comment , Image , Forum , Forum message , Product , Product review )
search * *
user password *
bulkmail * *
content read Node( Offentlig informasjon fra Pandagruppen )
--------

Has anybody else experienced this? Any hints or clues is greatly appreciated.

My system: ezpublish 3.2.4, red hat linux 8, php 4.3.4, mysql 4.0.17.

regards,
claus

James Packham

Wednesday 28 January 2004 6:23:32 am

I've had similar problems in the past:

When I'd update settings for one of my roles and click store all the role settings would dissapear for that role. When I looked in the database the permissions were there, but duplicated several times. In the end I figured out that I could fix it by running the database clean script in update/common/scripts/. As usual I'd recommend you back up your database first though :) It seemed my problem was caused by a buggy database upgrade script, though I don't know which one as it'd been updated many times.

Hope this helps,

Regards,

~James~

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 16:05:10
Script start
Timing: Jan 18 2025 16:05:10
Module start 'layout'
Timing: Jan 18 2025 16:05:10
Module start 'content'
Timing: Jan 18 2025 16:05:11
Module end 'content'
Timing: Jan 18 2025 16:05:11
Script end

Main resources:

Total runtime1.1695 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0234152.6250
Module start 'layout' 0.00620.0027 740.648439.4453
Module start 'content' 0.00891.1591 780.0938495.9297
Module end 'content' 1.16800.0014 1,276.02348.1563
Script end 1.1694  1,284.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2603160.0002
Check MTime0.00120.1039160.0001
Mysql Total
Database connection0.00160.134410.0016
Mysqli_queries1.119295.7004540.0207
Looping result0.00050.0394520.0000
Template Total1.139997.520.5699
Template load0.00250.217320.0013
Template processing1.137397.253020.5687
Template load and register function0.00020.013310.0002
states
state_id_array0.00110.097310.0011
state_identifier_array0.00070.059920.0004
Override
Cache load0.00200.1680250.0001
Sytem overhead
Fetch class attribute can translate value0.00040.035720.0002
Fetch class attribute name0.00090.078430.0003
XML
Image XML parsing0.00110.090620.0005
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00100.0886160.0001
String conversion0.00000.000640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs