Forums / General / Help with permissions for indexpage

Help with permissions for indexpage

Author Message

Ralf Tomer

Saturday 30 April 2005 5:10:18 am

Hi,
I'm testing on WinXP (localhost) a multisite settup on one database with ezp 3.5.2.

My problem is that I get access denied errors when I try to load custom index pages, even though I've granted all the neccessary anonymous permissions as far as I can tell.

- I've settup 3 "sites" using siteaccess (called: plain, plain1, plain2)

- For each site I've created a section by the same name

- For each section I've created a content folder by the same name (intended to be the root of each site). I've assigned each folder to the corresponding section.

- In the site.ini.append.php I set the indexpage to the node of each folder. Example: IndexPage=/content/view/full/63/

- I've edited the anonymous role to include:

user:login SiteAccess( plain , plain1 , plain2 )

content:read Section( plain , plain1 , plain2 )

- Plus I have granted anonymous user access to the sections and subtrees by using the "asign with limitation" button to add access to each section and each subtree.

The weird thing is this works perfectly for the first site (plain). The other 2 sites give me access denied errors as soon as I set the indexpage to ANY sub folder. If I set the indexpage to an artical in the root it works. If I set the indexpage to a folder in the root, it doesn't work. Even if I set it to the "plain" folder which DOES work for the "plain" site.

The error in the debug is as follows:
Warning: Insufficient permissions Apr 30 2005 14:03:55

Function required:
Module : content
Function : read
ClassID : 1
MainNodeID : 63
Policies that didn't match:
PolicyID : p_336
Limitation : Section
Required : 1,

It must be a simple problem but I'm banging my head with it - anyone help?

Thanks
Ralf

Fancy a game of Texasholdem?
http://www.texasholdem-poker.info

eZ debug

Timing: Jan 18 2025 19:14:42
Script start
Timing: Jan 18 2025 19:14:42
Module start 'content'
Timing: Jan 18 2025 19:14:42
Module end 'content'
Timing: Jan 18 2025 19:14:42
Script end

Main resources:

Total runtime0.0189 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.8594180.8359
Module start 'content' 0.00680.0052 769.695393.7422
Module end 'content' 0.01200.0069 863.437570.7031
Script end 0.0189  934.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.9389120.0002
Check MTime0.00105.5170120.0001
Mysql Total
Database connection0.00084.412110.0008
Mysqli_queries0.003116.438840.0008
Looping result0.00000.100820.0000
Template Total0.006232.810.0062
Template load0.00168.279910.0016
Template processing0.004624.440310.0046
Override
Cache load0.00083.995110.0008
General
dbfile0.00084.0581100.0001
String conversion0.00000.035330.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs