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