Tags:
create new tag
view all tags

Question

I have recently upgraded to beta release 2004x07x03, using PatternSkin. I have tried to set up the site for partial authentication, which worked well with the previous version. Now, ALL page views force authentication. I think it has something to do with a viewauth request for a user layout page, related to PatternSkin. I get this ssl_access_log entry:

64.n.n.n - - [28/Aug/2004:14:52:34 -0500]"GET/playspot/bin/viewauth/Main/%25USERSTYLEURL%25 HTTP/1.1" 401 59

Am I understanding correctly, that this is causing unwanted authentication? Can I turn this off so that unauthenticated users can view the site?

Environment

TWiki version: TWikiBetaRelease2004x07x30
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 9
Web server: Apache/2.0.40
Perl version: 5.8.0
Client OS: MacOS 10.3.4
Web Browser: Camino 0.8 & Safari

-- AndyWiese - 28 Aug 2004

Answer

The user style layout is not fully worked out yet. You should be able to disable it to avoid the authentication: Remove the following from twiki/templates/twiki.pattern.tmpl:

   /* Custom overriding layout per web or per topic */
   @import url("%USERLAYOUTURL%");
   /* Custom overriding style per web or per topic */
   @import url("%USERSTYLEURL%");

-- PeterThoeny - 03 Sep 2004

I also ran into this problem.

When working on my TWiki (Cairo, Apache 2.0.52, Perl 5.8.3) on my home network I got the strange error log in the Apache log but things worked. But when accessing my own TWiki site from work through the company firewall my browser wanted to authenticate all the time. This is a really nasty bug.

I found an altertive work around which does not require changing the perl code and may be more attractive quick fix for the occational newbie user because it can be done from a browser.

I edit the TWikiPreferences and add these two lines (just below Set TWIKISTYLEURL)

    • Set USERLAYOUTURL =
    • Set USERSTYLEURL =
That seems to cure the problem also. I think this has no negative impact on the browser execution, though not perfect because the browser still see the code @import url(""); twice.

The solution to this bug should really be added to the TWiki.org installation documentation because a Cairo based TWiki site is impossible to use for many users depending on firewalls and other factors. Maybe it should be added under the known problems for Cairo. Maybe both the real solution (remove the code lines) and the work around.

-- KennethLavrsen - 06 Oct 2004

You should avoid @import url("");, because the latest Firefox (since 1.0.1? 1.0.2?) tries to read the topic itself as CSS. It results in two HTTP accesses per topic view.

-- KaoruMaeda - 31 Mar 2005

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-03-31 - KaoruMaeda
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.