Bug: Bad oops message when creating new web
Creating a new web without permissions results in the error:
Template file oopsaccessmanage.tmpl not found or template directory
blahblahblah not found.
Check the $templateDir variable in TWiki.cfg.
Cause: createWeb calls this:
TWiki::UI::isAccessPermitted( $webName, $topicName,
"manage", $wikiUserName );
isAccessPermitted winds up calling
oops( $webName, $topic, "access$mode" );
(where $mode is "manage") when access is denied.
oops turns that into "oopsaccessmanage"
oopsaccessmanage.tmpl doesn't exist.
Test case
Try creating a new web from the TWiki.ManagingWebs topic as TWikiGuest on twiki.org
Environment
--
TWikiGuest - 04 Jul 2004
Follow up
poop, I think this is a bug i squashed on friday. the fix is in the subversion repository, and will be in the next alpha/beta. Thankyou for writing it up so nicely
Fix record
I changed the line to
return unless TWiki::UI::isAccessPermitted( $webName, $topicName,
"createweb", $wikiUserName );
which does exist
--
SvenDowideit - 04 Jul 2004
(originally posted in
Support.BadOopsWhenCreatingWebAccessProblem)
--
PeterThoeny - 05 Jul 2004