Siteaccess overrides not working

Author Message

Michael Caplan

Saturday 14 June 2003 6:53:46 am

Hi,

I am working on an install of eZ Publish 3.1 RC2. I have configured the SiteAccessSetting in the override site.ini.append so that it matches a site on "host" and the hostmatchtype is "map." I then configured RequireUserLogin to false. Within the SiteAccess overrides for the two sites I map to (demo and admin), I have configured the site.ini.append files so that the "admin" site RequireUserLogin=true, and the "demo" site is RequireUserLogin=false.

The problem I have is this: the overrides for the SiteAccess files (site.ini.append) are not taking. In this case, when accessing the admin site, I am not prompted for a user login screen on first visit. If I change the settings/override/site.ini.append file to RequireUserLogin=true, the reverse happens: I am promoted for a login for both sites. Is this a bug, or am I missing something here?

Thanks,

Michael

[SiteAccessSettings]
CheckValidity=false
RequireUserLogin=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=ias;demo
HostMatchMapItems[]=admin-ias;admin

Jo Henrik Endrerud

Saturday 14 June 2003 12:43:50 pm

Hi Michael

No, this is not a bug. The reason for this behaviour is because the settings/override/site.ini.append file has the highest priority of the configuration files. If a setting is found here, it will not even bother by checking the site access site.ini.append file.

If you want a setting different for different site accesses you should not have the variable in the override site.ini.append file

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Michael Caplan

Saturday 14 June 2003 5:00:08 pm

That makes perfect sense. I must of overlooked that in the manual.

Thanks!

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 21:33:01
Script start
Timing: Jan 30 2025 21:33:01
Module start 'layout'
Timing: Jan 30 2025 21:33:01
Module start 'content'
Timing: Jan 30 2025 21:33:03
Module end 'content'
Timing: Jan 30 2025 21:33:03
Script end

Main resources:

Total runtime1.4076 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.1563151.2109
Module start 'layout' 0.00710.0059 739.3672220.6875
Module start 'content' 0.01301.3937 960.05474,299.3516
Module end 'content' 1.40680.0008 5,259.406311.8438
Script end 1.4076  5,271.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2988160.0003
Check MTime0.00130.0927160.0001
Mysql Total
Database connection0.00130.090810.0013
Mysqli_queries1.318793.6853570.0231
Looping result0.00060.0434550.0000
Template Total1.335294.920.6676
Template load0.00240.172420.0012
Template processing1.332894.686120.6664
Template load and register function0.00200.143410.0020
states
state_id_array0.00360.254810.0036
state_identifier_array0.00220.159320.0011
Override
Cache load0.00200.1400220.0001
Sytem overhead
Fetch class attribute can translate value0.00200.144420.0010
Fetch class attribute name0.00260.183330.0009
XML
Image XML parsing0.00030.022320.0002
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00070.0493100.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs