Tags:
create new tag
view all tags

Question

We have a "locked web". ALLOWEBVIEW is set to a particular group.

I want to make the WebHome page viewable by everyone. That page has a notice that says "This is a private web'.

I tried setting DENYTOPICVIEW to empty as described in TWiki.TWikiAccessControl. However, when I do that, if I attempt to access the page before loggin in, I see

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information. 
Undefined subroutine &TWiki::Contrib::EditContrib::Include41::isTrue called

We are running TWiki version TWiki-4.1.2.

I've filed a bug report (Item5334). In the meantime, is there a workround anyone can suggest?

Environment

TWiki version: 4.1.2
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Authentication, Authorisation

-- VickiBrown - 06 Feb 2008

Answer

ALERT! 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.

Just a guess: Did you make your WebLeftBar topic accessible to everyone as well? If not, then do this - it is even more than a workaround, it is the right thing to do smile

But of course it is a bug: From a glimpse at the code, it tries to call an unqualified isTrue (in both Include40.pm and Include41.pm) several times, one of them is if you do not have permission to view an included topic. If you replace isTrue by TWiki::isTrue in lib/TWiki/Contrib/EditContrib/Include41.pm then you should get the correct error message stating that you have no permission to view WebLeftBar.

-- HaraldJoerg - 07 Feb 2008

Harald - you're absolutely right. I never thought about WebLeftBar. I also edited the <nop?EditContrib code, though that's less necessary now. smile

Thank you. Problem resolved.

-- VickiBrown - 11 Feb 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-02-11 - VickiBrown
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.