Tags:
create new tag
, view all tags

Question

Hi,

after upgrading my wiki to the 01-Sep-2004 release, I'm having problems with accessing pages that require authorization.

To me, it looks like the redirection from view to viewauth does not work for some reason; I get the oops page. When using a viewauth URL explicitly - e.g., by typing it into the browser, things work fine.

Anyone have an idea what could cause this? No errors in the wiki or apache logs.

Thanks, Lars lars.eggert@netlabPLEASENOSPAM.nec.de

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FreeBSD 6.0-CURRENT
Web server: Apache/2.0.52
Perl version: 5.8.5
Client OS: Darwin Kernel Version 7.6.0
Web Browser: Camino 0.8+
Categories: Authentication, Authorisation

-- LarsEggert - 08 Nov 2004

Answer

Check if viewauth is authenticated in your twiki/bin/.htaccess

-- PeterThoeny - 09 Nov 2004

Yes, it requires a valid user.

What is funny is that if I make "view" require a valid user, everythign works fine, but then users must authenticate for all content, not just the few webs I want to protect.

I should have also mentioned that this is with the SessionPlugin.

-- LarsEggert - 09 Nov 2004

I "fixed" things temporarily by adding the following to my httpd.conf file:

<Directory /usr/local/www/twiki>                                                   
        RedirectMatch   (.*)/oops/(.*) $1/viewauth/$2                              
</Directory>                     
But I'd much rather see a clean solution than this hack!

-- LarsEggert - 22 Nov 2004

Better still, because this also matches on the query string and the other purposes of the oops script now work again:

RewriteEngine   On
RewriteCond     %{REQUEST_URI}  /oops/
RewriteCond     %{QUERY_STRING} template=oopsaccessview
RewriteRule     (.*)/oops/(.*)  $1/viewauth/$2?  [R,L]

-- LarsEggert - 03 Dec 2004

 
Topic revision: r6 - 2005-02-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.