Question
I am using subwebs for my wiki and have discovered there seems to be a problem with webview/change/rename permissions. Basically, if I look at the TWiki/SitePermissions page I can quickly see that the
SubWebs are inheriting the web permissions from the parent web regardless of what is listed within the
SubWeb's
WebPreferences. However, other
WebPreferences are being set uniquely for the
SubWeb.
Has anyone else run into this or no the solution?
This site is running TWiki version Wed, 08 Feb 2006 build 8740, Plugin API version 1.1
Environment
| TWiki plugins: |
SpreadSheetPlugin AliasPlugin CommentPlugin EditTablePlugin FilterPlugin HeadlinesPlugin IfDefinedPlugin InterwikiPlugin NatSkinPlugin PreferencesPlugin RedDotPlugin RenderListPlugin SmiliesPlugin
TablePlugin WysiwygPlugin |
| Server OS: |
FreeBSD 5.4 |
| Web server: |
Apache 2.0.55 |
| Perl version: |
perl, v5.8.7 built for i386-freebsd-64int |
| Client OS: |
tested on Window & OS X |
| Web Browser: |
EI and Firefox |
| Categories: |
Permissions, Security |
Here is a snip from the Web &
SubWeb WebPreferences:
OurMainWeb
SubWeb1
* #Set DENYWEBVIEW =
SitePreferences lists:
(The SITEMAPLIST is off on my subweb in its
WebPreferences)
--
SusanCaskey - 24 Mar 2006
More information on the Filesystem side:
Here are the permissions of my web and subweb at the unix level:
> ls -la
total 344
drwxr-xr-x 6 www www 2048 Mar 27 12:21 .
drwxr-xr-x 10 www www 512 Mar 27 15:16 ..
drwxr-xr-x 2 www www 2560 Mar 27 13:14 Countries
-rw-r--r-- 1 www www 341 Mar 2 10:01 WebAtom.txt
-rw-r--r-- 1 www www 536 Mar 2 10:01 WebAtom.txt,v
-rw-r--r-- 1 www www 157 Mar 2 10:01 WebChanges.txt
-rw-r--r-- 1 www www 599 Mar 2 10:01 WebChanges.txt,v
-rw-r--r-- 1 www www 48 Mar 27 12:21 WebHome.lease
-rw-r--r-- 1 www www 3023 Mar 27 12:03 WebHome.txt
-r--r--r-- 1 www www 17775 Mar 27 12:03 WebHome.txt,v
-rw-r--r-- 1 www www 237 Mar 2 10:01 WebIndex.txt
-rw-r--r-- 1 www www 942 Mar 2 10:01 WebIndex.txt,v
-rw-r--r-- 1 www www 899 Mar 2 10:01 WebLeftBar.txt
-rw-r--r-- 1 www www 1775 Mar 2 10:01 WebLeftBar.txt,v
-rw-r--r-- 1 www www 654 Mar 2 16:26 WebNotify.txt
-r--r--r-- 1 www www 3971 Mar 2 16:26 WebNotify.txt,v
-rw-r--r-- 1 www www 48 Mar 23 15:39 WebPreferences.lease
-rw-r--r-- 1 www www 4930 Mar 23 15:39 WebPreferences.txt
-r--r--r-- 1 www www 22416 Mar 23 15:39 WebPreferences.txt,v
-rw-r--r-- 1 www www 439 Mar 2 10:01 WebRss.txt
-rw-r--r-- 1 www www 1673 Mar 2 10:01 WebRss.txt,v
-rw-r--r-- 1 www www 156 Mar 2 10:01 WebSearch.txt
-rw-r--r-- 1 www www 597 Mar 2 10:01 WebSearch.txt,v
-rw-r--r-- 1 www www 166 Mar 2 10:01 WebSearchAdvanced.txt
-rw-r--r-- 1 www www 611 Mar 2 10:01 WebSearchAdvanced.txt,v
-rw-r--r-- 1 www www 828 Mar 2 10:01 WebStatistics.txt
-rw-r--r-- 1 www www 2816 Mar 2 10:01 WebStatistics.txt,v
-rw-r--r-- 1 www www 37 Mar 2 10:01 WebTopicCreator.txt
-rw-r--r-- 1 www www 232 Mar 2 10:01 WebTopicCreator.txt,v
-rw-r--r-- 1 www www 52 Mar 13 12:38 WebTopicEditTemplate.lease
-rw-r--r-- 1 www www 474 Mar 13 12:38 WebTopicEditTemplate.txt
-r--r--r-- 1 www www 1592 Mar 13 12:38 WebTopicEditTemplate.txt,v
-rw-r--r-- 1 www www 208 Mar 2 10:01 WebTopicList.txt
-rw-r--r-- 1 www www 673 Mar 2 10:01 WebTopicList.txt,v
> ls -la Countries/
total 440
drwxr-xr-x 2 www www 2560 Mar 27 13:14 .
drwxr-xr-x 6 www www 2048 Mar 27 12:21 ..
-rw-r--r-- 1 www www 2082 Mar 27 13:13 .changes
-rw-r--r-- 1 www www 0 Mar 14 15:32 .mailnotify
-rw-r--r-- 1 www www 5675 Mar 22 10:50 Blugaria.txt
-r--r--r-- 1 www www 7467 Mar 22 10:50 Blugaria.txt,v
-rw-r--r-- 1 www www 341 Mar 14 15:32 WebAtom.txt
-rw-r--r-- 1 www www 536 Mar 14 15:32 WebAtom.txt,v
-rw-r--r-- 1 www www 157 Mar 14 15:32 WebChanges.txt
-rw-r--r-- 1 www www 599 Mar 14 15:32 WebChanges.txt,v
-rw-r--r-- 1 www www 2025 Mar 27 10:27 WebHome.txt
-r--r--r-- 1 www www 8612 Mar 27 10:27 WebHome.txt,v
-rw-r--r-- 1 www www 48 Mar 21 09:18 WebHome2.lease
-rw-r--r-- 1 www www 1829 Mar 21 09:18 WebHome2.txt
-r--r--r-- 1 www www 3878 Mar 21 09:18 WebHome2.txt,v
-rw-r--r-- 1 www www 237 Mar 14 15:32 WebIndex.txt
-rw-r--r-- 1 www www 942 Mar 14 15:32 WebIndex.txt,v
-rw-r--r-- 1 www www 899 Mar 14 15:32 WebLeftBar.txt
-rw-r--r-- 1 www www 1775 Mar 14 15:32 WebLeftBar.txt,v
-rw-r--r-- 1 www www 654 Mar 14 15:32 WebNotify.txt
-rw-r--r-- 1 www www 3971 Mar 14 15:32 WebNotify.txt,v
-rw-r--r-- 1 www www 4568 Mar 14 15:32 WebPreferences.txt
-r--r--r-- 1 www www 18617 Mar 14 15:32 WebPreferences.txt,v
-rw-r--r-- 1 www www 439 Mar 14 15:32 WebRss.txt
-rw-r--r-- 1 www www 1673 Mar 14 15:32 WebRss.txt,v
-rw-r--r-- 1 www www 156 Mar 14 15:32 WebSearch.txt
-rw-r--r-- 1 www www 597 Mar 14 15:32 WebSearch.txt,v
-rw-r--r-- 1 www www 166 Mar 14 15:32 WebSearchAdvanced.txt
-rw-r--r-- 1 www www 611 Mar 14 15:32 WebSearchAdvanced.txt,v
-rw-r--r-- 1 www www 828 Mar 14 15:32 WebStatistics.txt
-rw-r--r-- 1 www www 2816 Mar 14 15:32 WebStatistics.txt,v
-rw-r--r-- 1 www www 37 Mar 14 15:32 WebTopicCreator.txt
-rw-r--r-- 1 www www 232 Mar 14 15:32 WebTopicCreator.txt,v
-rw-r--r-- 1 www www 48 Mar 16 14:05 WebTopicEditDefault.lease
-rw-r--r-- 1 www www 1469 Mar 27 13:14 WebTopicEditTemplate.txt
-r--r--r-- 1 www www 12595 Mar 27 13:14 WebTopicEditTemplate.txt,v
-rw-r--r-- 1 www www 208 Mar 14 15:32 WebTopicList.txt
-rw-r--r-- 1 www www 673 Mar 14 15:32 WebTopicList.txt,v
--
SusanCaskey - 27 Mar 2006
I've started parsing the Prefs.pm and
PrefsCache.pm files to get me some more details as STDERR messages. I am showing that the preferences path is set to what I would be expecting (from pushWebPrefernces) and that the Hash has been updated: TWiki::Prefs::PrefsCache=HASH(0x8874844) (eg)
But if I put a print statment inside the
ObjectMethod insert within
PrefsCache.pm I am seeing all the
WebPrefences listed out in my apache log in what appears to be the order Web,
SubWeb which means several values are repeated. But I am not seeing the ALLOWWEBVIEW,ALLOWWEBCHANGE, or ALLOWWEBRENAME only TOPIC stuff in the last set of preferences to scroll by.
I'd include the log here, but this chunk is well over 5000 lines, here is just a bit though:
[Tue Mar 28 16:08:27 2006] [error] [client 134.253.15.235] FINALPREFERENCES -- ATTACHFILESIZELIM
IT, PREVIEWBGIMAGE, WIKITOOLNAME, WIKIWEBMASTER, SMTPMAILHOST, SMTPSENDERHOST, ALLOWWEBMANAGE, PR
OXYHOST, PROXYPORT , referer: https://sloan.sandia.gov/twiki/bin/view/IntlBTR/Facilities/WebHome
[Tue Mar 28 16:08:27 2006] [error] [client 134.253.15.235] ALLOWTOPICCHANGE -- TWikiAdminGroup
, referer: https://sloan.sandia.gov/twiki/bin/view/IntlBTR/Facilities/WebHome
[Tue Mar 28 16:08:27 2006] [error] [client 134.253.15.235] ALLOWTOPICRENAME -- TWikiAdminGroup
, referer: https://sloan.sandia.gov/twiki/bin/view/IntlBTR/Facilities/WebHome
[Tue Mar 28 16:08:27 2006] [error] [client 134.253.15.235] PREFERENCE_VIEW_TEMPLATE -- UserView
, referer: https://sloan.sandia.gov/twiki/bin/view/IntlBTR/Facilities/WebHome
[Tue Mar 28 16:08:27 2006] [error] [client 134.253.15.235] VIEW_TEMPLATE -- UserView , referer:
https://sloan.sandia.gov/twiki/bin/view/IntlBTR/Facilities/WebHome
If someone can confirm that my impressions of what I am seeing are correct, I would really be greatful.
Thanks
--
SusanCaskey - 28 Mar 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Well, after setting lots of STDERR messages within the Prefs.pm and
PrefsCache.pm file and parsing apache error logs I found the problem. Basically, this message located within the default
WebPreference file is not complete:
- Web preferences that are not allowed to be overridden by user or topic preferences:
It should also include
SubWebs. Basically, a Subweb can also not overwrite any setting set to final in the top level web. So if you are using
SubWebs and need different preferences make sure they are not set to Final in any upper web.
I hope this helps someone else stuck in a similar problem.
--
SusanCaskey - 30 Mar 2006
I've encountered this as well and I have to say this isn't just an inconvenience, its a bug. If not, its clearly not documented that this is the way you should expect performance and, if it wasn't for all of Susan's work, I'd be sorely out of luck.
--
CharlesLong - 20 Jun 2007
Agreed, thanks Susan.
--
RobertMorton - 21 Jun 2007