Package: twiki
Version: 1:4.0.5-7
Severity: normal

The proposed URL in debconf for the defaultsiteurl is http://localhost/

This is suggesting that this URL should be changed to something like
http://mymachine.mydomain.whatevertld/

But then, when using the templatelogin mode, the following scenario
fails :

1. Going to http://mymachine.mydomain.whatevertld/twiki
You see http://mymachine.mydomain.whatevertld//cgi-bin/twiki/view
(notice the double slash)

2. Click on login : the login screen will be something like :
http://mymachine.mydomain.whatevertld/cgi-bin/twiki/login/Main/WebHome?origurl=//cgi-bin/twiki/view/
(notice the double slash)

3. Which will redirect to http://cgi-bin/twiki/view/ on successful login...

:(

The problem here is the rewrite rule setup in /etc/twiki/apache.conf
like :
RedirectMatch /twiki(/([A-Z].*)?)?$ 
http://mymachine.mydomain.whatevertld//cgi-bin/twiki/view$1

I think this has to do with the trailing slash in the debconf setting,
or the way postinst configures apache.conf.

In any case, there shouldn't be a double-slash in the end in apache.conf

Note that this only happens once TemplateLogin has been configured,
which is not the default in Debian right after install

Hope this helps

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages twiki depends on:
ii  apache2.2-common              2.2.3-3.2  Next generation, scalable, extenda
ii  debconf [debconf-2.0]         1.5.11     Debian configuration management sy
ii  libalgorithm-diff-perl        1.19.01-2  a perl library for finding Longest
ii  libcgi-session-perl           4.14-1     Persistent session data in CGI app
ii  libdigest-sha1-perl           2.11-1     NIST SHA-1 message digest algorith
ii  liberror-perl                 0.15-8     Perl module for error/exception ha
ii  liblocale-maketext-lexicon-pe 0.62-1     Lexicon-handling backends for "Loc
ii  libtext-diff-perl             0.35-2     Perform diffs on files and record 
ii  perl [libmime-base64-perl]    5.8.8-7    Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl]    5.8.8-7    Core Perl modules
ii  rcs                           5.7-18     The GNU Revision Control System

twiki recommends no packages.

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to