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
You are here: TWiki> Support Web>AcessDeniedInPerlScripts (21 Sep 2004, PeterThoeny)
Tags:
create new tag
, view all tags

Question

Recently I've figured out the following problem:

I have added new web MyWeb to teh project.

When I set ALLOWWEBVIEW to me on MyWeb.WebPreferences, I got "View Access Denied" on "Total Page History" link of any page in the MyWeb.

I've been correcly logged in as user written in ALLOWWEBVIEW, so I can see and edit any page in MyWeb. But I've figured out, that in this case perl scripts other then "view" and "viewauth" have problems accessing MyWeb topics.

When I set ALLOWWEBVIEW = , problem disappears.

Also I see this effect only on MyWeb. For ex. with the same settings with Main or Twiki web I can perfectly go on the "changes" and "Total Page History" there, therefore perl scripts "rdiff" and "changes" work well. Also the problem like this is located in DiffDoesNotAuthenticate.

How can I solve this issue?

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2003 Server
Web server: Apache 1.3.27
Perl version: 5.8.5
Client OS: Windows XP SP 1
Web Browser: Opera 7.6

-- TWikiGuest - 17 Sep 2004

Answer

You probably need to set $doRememberRemoteUser to 1 in TWiki.cfg.

-- CrawfordCurrie - 19 Sep 2004

Closing this question, is most likely Crawford's suggestion since the view script is noy authenticated TWiki needs to know who the user is.

Alternatively you can authenticated the view script which requires users to login also when looking at TWiki content. Set this in twiki/bin/.htaccess:

<Files "view">
       require valid-user
</Files>

-- PeterThoeny - 21 Sep 2004

Topic revision: r3 - 21 Sep 2004 - 07:09:24 - 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