Successful login using login in webleftbar leads me to non existing page
I open a browser
I am not authenticated!
I login by clicking the login link in the left bar.
I authenticate myself.
I am directed to a page
http://merlin.lavrsen.dk/dakar/bin/WebHome/view/WebHome
which does not exist naturally.
In the apache error log I get
[Mon Jan 02 01:53:55 2006] [error] [client 192.168.1.9] script not found or unable to stat: /usr/local/apache2/dakar/bin/WebHome, referer:
http://merlin.lavrsen.dk/dakar/bin/view/TWiki/WebHome
Here are the
LocalSite.cfg settings you may need to reproduce it
$TWiki::cfg{DispScriptUrlPath} = '/dakar/bin';
$TWiki::cfg{PubDir} = '/usr/local/apache2/dakar/pub';
$TWiki::cfg{PubUrlPath} = '/dakar/pub';
$TWiki::cfg{TemplateDir} = '/usr/local/apache2/dakar/templates';
$TWiki::cfg{ScriptUrlPath} = '/dakar/bin';
$TWiki::cfg{DataDir} = '/usr/local/apache2/dakar/data';
$TWiki::cfg{LocalesDir} = '/usr/local/apache2/dakar/locale';
$TWiki::cfg{DefaultUrlHost} = 'http://merlin.lavrsen.dk';
$TWiki::cfg{Sessions}{ExpireAfter} = '0';
$TWiki::cfg{MapUserToWikiName} = 0;
$TWiki::cfg{UseClientSessions} = 1;
$TWiki::cfg{Sessions}{MapIP2SID} = 0;
$TWiki::cfg{Sessions}{UseIPMatching} = 1;
$TWiki::cfg{LoginManager} = 'TWiki::Client::ApacheLogin';
$TWiki::cfg{Sessions}{IDsInURLs} = 0;
$TWiki::cfg{Register}{NeedVerification} = 1;
Note that I use Apache Login
KJL
That would tend to suggest you have inconsistent versions of TWiki.pm and TWiki/Client/ApacheLogin.pm.
The function
getScriptUrl
has had its parameter order and number changed. Please check to make sure you have correct versions.
CC
I have confirmed that both files are up to date. I compared by manually downloading them from the SVN webinterface.
Note that if I not authenticated and press EDIT I am being prompted for user name and password. And that works OK.
It is only when I login via the %LOGIN twiki variable that things do not work
KJL
SVN 8076 ought to have corrected it. I had missed a call to getScriptUrl.
CC