When setting
$TWiki::cfg{ScriptUrlPath} = '/what/ever/';
that is not honored by the 'configure' script. It is invoked properly, but produces a
<form ....action="configure" ...
'Next' button somewhere here
--
TWiki:Main/RobertBarta
- 23 Oct 2007
The 'Next' action in configure is relative to the URL used to invoke the script. This is necessary so that configure can work
before ScriptUrlPath is set.
It has always been this way. Can you please be more specific about exactly what problem this is causing you, and why you consider it to be Urgent?
CC
The problem emerges, when TWiki is run behind a reverse proxy. Whereas all content scripts honor the prefix, the configure script does not honor the prefix. When it is invoked with
http://www.whatever.org/dev/unstable/configure
It creates a form
<form method="post" action="/cgi-bin/twiki/configure">
and not
<form method="post" action="/dev/unstable/configure">
It is urgent, because web-based administration in a reverse proxy situation breaks.
--
TWiki:Main.RobertBarta
- 28 Oct 2007
Please try commenting out the line that says
action=>$scriptName
in
bin/configure
and let me know if that cures it for you.
--
TWiki:Main.CrawfordCurrie
- 29 Oct 2007
Ping - please, someone with a reverse poxy give feedback!
--
TWiki:Main.CrawfordCurrie
- 22 Nov 2007
TWiki:Main.KoenMartens
is going to verify
CC
I have tried to reproduce this with squid in reverse proxy mode, but did not see the invalid form action described in the bug. I did see a problem with the 'Return to configuration' link on the save page though, which i fixed by making that a relative link.
Robert, are you positive that the form action was invalid, and not the 'Return to configuration' link?
I could retry with varnish, apache in reverse proxy mode, oops or any one of the other reverse proxies out there, but i find it hard to believe that a wrong form action will be generated. The code does not leave much room for interpretation: it takes the script path, strips the path and uses only the filename for generating the form action, which is therefore always relative.
I'm setting this bug on Waiting for feedback again, but if we do not hear from Robert i propose to set it to Closed, since i have serious doubts about the posibility that the form action could be wrong.
--
TWiki:Main.KoenMartens
- 15 Dec 2007
Additional note: i checked 4.1.2 as well as on the 4.2-branch. Same result.
--
TWiki:Main.KoenMartens
- 15 Dec 2007
Apologies for being unresponsive, but I have abandoned TWiki.
>
I have tried to reproduce this with squid in reverse proxy mode, ...
Gna. Reverse Proxy means that there is also URI rewriting going on. Such
as with the the Apache
ProxyPass,
ProxyPassReverse directive.
This means that a reverse-proxied TWiki will have to adapt
fully
with the new URLpath. As I have written in my original bug report,
it works perfectly for the ''normal'' scripts, but configure does not
honor it and uses the generic /cgi-bin/twiki/configure action target
in the form it creates.
>
Please try commenting out the line that says
>
action=>$scriptName in bin/configure and let
>
me know if that cures it for you.
I faintly remember that I did that and that it worked.
Meta: And is there any way to make this comment window smaller?
Say one line and one character only?
--
TWiki:Main.RobertBarta
- 17 Dec 2007
Meta:
>
Meta: And is there any way to make this comment window smaller? Say one line and one character only?
It's a wiki - feel free to use the edit button - we have a draggable edit window size now (whee!)
--
TWiki:Main.SteffenPoulsen
- 17 Dec 2007