• 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.

Item5619: Problem with ALLOWWEBVIEW and Forms

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension SearchEngineKinoSearchAddOn Enhancement Closed   n/a  

Edit Form Data

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

Detail

If ALLOWWEBVIEW is set an AccessControlException is raisesed from the index script if a Form exists in that web. The message is
AccessControlException: Access to VIEW CCTnuovo/GiornaleAttivita.PaginaGiornaleAttivitaForm for BaseUserMapping_666 is denied.

A preliminar solution for the problem: Change the code in lib/TWiki/Contrib/SearchEngineKinoSearchAddOn/Index.pm in method formsFieldNames from

my $form = TWiki::Form->new($TWiki::Plugins::SESSION, $web, $formName);

to

my $session = new TWiki( "admin", undef);
my $form = TWiki::Form->new($session, $web, $formName);

-- TWiki:Main/MarkusHesse - 11 May 2008

I now use the following:

my $form = TWiki::Form->new(new TWiki($TWiki::cfg{AdminUserLogin}), $web, $formName);

-- MarkusHesse - 12 May 2008

ItemTemplate
Summary Problem with ALLOWWEBVIEW and Forms
ReportedBy TWiki:Main.MarkusHesse
Codebase

SVN Range TWiki-5.0.0, Sun, 04 May 2008, build 16770
AppliesTo Extension
Component SearchEngineKinoSearchAddOn
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:16789
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-05-12 - MarkusHesse
 
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