Forums / Setup & design / Siteaccess overrides not working

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!

eZ debug

Timing: Jan 18 2025 04:18:07
Script start
Timing: Jan 18 2025 04:18:07
Module start 'content'
Timing: Jan 18 2025 04:18:07
Module end 'content'
Timing: Jan 18 2025 04:18:07
Script end

Main resources:

Total runtime0.8100 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 587.7344180.8281
Module start 'content' 0.00860.7984 768.5625501.5703
Module end 'content' 0.80700.0030 1,270.132842.1016
Script end 0.8100  1,312.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4513140.0003
Check MTime0.00140.1688140.0001
Mysql Total
Database connection0.00120.151710.0012
Mysqli_queries0.768294.8385580.0132
Looping result0.00060.0689560.0000
Template Total0.776595.920.3882
Template load0.00230.287820.0012
Template processing0.774195.567220.3871
Template load and register function0.00020.019710.0002
states
state_id_array0.00110.139910.0011
state_identifier_array0.00100.123320.0005
Override
Cache load0.00180.2241220.0001
Sytem overhead
Fetch class attribute can translate value0.00070.080920.0003
Fetch class attribute name0.00120.143830.0004
XML
Image XML parsing0.00050.056520.0002
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00070.0900120.0001
String conversion0.00000.001030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs