We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

(I tried submitting a bug report, but that failed on me with a permission problem)

Bug: 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.

Reproduce: Try creating a new web from the TWiki.ManagingWebs topic as TWikiGuest on twiki.org

Environment

TWiki version: TWikiBetaRelease2004x05x07
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat 9
Web server: Apache
Perl version:  
Client OS: Windows XP
Web Browser: Firefox

-- TWikiGuest - 04 Jul 2004

Answer

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 smile

I changed the line to

  return unless TWiki::UI::isAccessPermitted( $webName, $topicName,
                                              "createweb", $wikiUserName );

which does exist

-- SvenDowideit - 04 Jul 2004

I carried over the bug to Codev.BadOopsMessageWhenCreatingWeb

-- PeterThoeny - 05 Jul 2004

Topic revision: r3 - 05 Jul 2004 - 21:09:25 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback