• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5774: WebPreferences Settings are not overridden!

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent No Action Required   major  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

WebPreferences Settings are not overridden!

if a %VALUE% is defined in a parent Web a SubWeb will not be able to override this setting but documentation says this:

Example Preference Inheritance for Sandbox/TestWeb/SubWeb.SubWebTopic topic:

  1. TWiki.TWikiPreferences site-wide preferences
  2. Sandbox.WebPreferences inherits from and overrides settings in TWiki.TWikiPreferences
  3. Sandbox/TestWeb.WebPreferences inherits from and overrides settings in Sandbox.WebPreferences
  4. Sandbox/TestWeb/SubWeb.WebPreferences inherits from and overrides settings in Sandbox/TestWeb.WebPreferences
  5. Sandbox/TestWeb/SubWeb.SubWebTopic inherits from and overrides settings in Sandbox/TestWeb/SubWeb.WebPreferences



So the Twiki Authorisation does not work too.

-- TWiki:Main/RicardoDonner - 14 Jul 2008

I have tested this and it does work.

I can define a variable in WebPreferences of a root web and see the value in a subweb.

And I can overwrite the same variable in the WebPreferences of the subweb.

When it comes to access rights then it is because you have missed an important point in the documentation.

Look at the root web at the bottom. Here you find

Set FINALPREFERENCES = NOSEARCHALL, ATTACHFILESIZELIMIT, WIKIWEBMASTER, WEBCOPYRIGHT, WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME

This is important. It is a FEATURE that a preference which is set final cannot be overwritten lower down the stream of access rights.

So if you want to be able to override access rights in a subweb you need to remove the corresponding preference from the FINALPREFERENCES in the parent web.

This is documented.

-- KennethLavrsen - 14 Jul 2008

ok smile

-- TWiki:Main.RicardoDonner - 14 Jul 2008

ItemTemplate
Summary WebPreferences Settings are not overridden!
ReportedBy TWiki:Main.RicardoDonner
Codebase 4.2.0
SVN Range TWiki-5.0.0, Wed, 09 Jul 2008, build 17004
AppliesTo Engine
Component

Priority Urgent
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease major
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-07-14 - RicardoDonner
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback