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

Item6541: AccessControlException caugth in TWiki::UI generates oops for wrong topic

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine UI Normal New   n/a  

Edit Form Data

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

Detail

When a user interface throws an AccessControlException this will be caught in TWiki::UI and results in

a redirect to an oops. The topic in the exception is not used though - the access violation is seemingly reported

for the topic that was last viewed using the current session.

We observe this when TWikiUserRegistration submits to /twiki/bin/register to register a user but

the register scripts fails to store the email information in the freshly instantiated user topic, e.g., for

user 'JohnDoe'. The AccessControlException is thrown for topic 'JohnDoe' (I verified this) but

the oops displayed is for Main.TwikiUserRegistration.

I have not found a fix yet but it seems to me that TWiki::OopsException::redirect() should manipulate the

session and use its web and topic before calling $session->redirect().

-- TWiki:Main/StefanWalter - 2010-08-16

ItemTemplate
Summary AccessControlException caugth in TWiki::UI generates oops for wrong topic
ReportedBy TWiki:Main.StefanWalter
Codebase 5.0.0
SVN Range TWiki-5.0.0, Tue, 06 Jul 2010, build 19208
AppliesTo Engine
Component UI
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2010-08-16 - StefanWalter
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback