I applied the pache descriped in issue 13056.
https://host/mantis.
The email pb is because the patch sets $gpath to empty string. Therefore,
string_get_confirm_hash_url cannot return a complete URL.
//return $t_path . '/' . $t_script . $t_query . $t_anchor;
return $t_path . $t_script . $t_query . $t_anchor;
//return config_get_global( 'short_path' ) . $p_url;
Post by P RichardsIn what bit of the generated email?
function string_get_confirm_hash_url( $p_user_id, $p_confirm_hash ) {
$t_path = config_get( 'path' );
return $t_path . 'verify.php?id=' . string_url( $p_user_id
) . '&confirm_hash=' . string_url( $p_confirm_hash );
}
We always make use of config_get(âpathâ) to get the value
Paul
*Sent:* 19 October 2014 09:29
*To:* developer discussions
*Subject:* Re: [mantisbt-dev] Mantis not working behind a reverse-proxy
also, I had to hardcode the path in the login confirmation email, as there
is no way for mantis to know the external URL.
Louis BAYLE
Tel: +33 (0)4.42.604.734
In deed, we have mantis listening internal on http://172.x.x.x and
accessible on the external with https://88.x.x.x (the reverse-proxy).
I'm fine if users access only via https, that's what I did for CodevTT.
I'll try the $g_path patch asap.
Louis BAYLE
Tel: +33 (0)4.42.604.734
If Iâm correct about what the issue is likely to be, the problem might
Unless you are saying that the INTERNAL and EXTERNAL path to mantis is
$g_path = $t_protocol . '://' . $t_host . $t_path;
i.e.
if you have mantis listening on http, with a loadbalancing reverse proxy
in front running https, whilst Mantis will detect http://www.foo.com, if
you set
$g_path = https://www.foo.com in the config file that should work I believe.
If you are saying that you use http://mantis.internal and www.foo.org
depending on whether users are internal or external to the corporate
network, then this might be more of an issue.
Looking at the code, we seem to generate a mixture of absolute and
relative links within a page in both 1.2 and 1.3 â the $g_path fix should
be fine for the reverse proxy case, however, the absolute links will need
to go to deal with the split-dns case.
Paul
*Sent:* 18 October 2014 23:16
*To:* developer discussions
*Subject:* Re: [mantisbt-dev] Mantis not working behind a reverse-proxy
Yes, I can install a mantis 1.3-dev on our server and test it.
I'm not sure I'll have time to do that next week, but I'll let you know.
Louis BAYLE
Tel: +33 (0)4.42.604.734
On Sat, Oct 18, 2014 at 11:55 PM, Paul Richards <
Are you able to test if the situation is any better with 1.3-dev?
If this is an absolute vs relative link type issue, (which Iâm guessing it
is) Iâm not sure if the situation is improved in 1.3
Paul
*Sent:* 18 October 2014 22:44
*To:* developer discussions
*Subject:* [mantisbt-dev] Mantis not working behind a reverse-proxy
Is there a 'good patch' to fix this realy problematic bug in Mantis ?
The patch I applied to our installation does not work very well.
IMHO this is realy a critical bug.
http://www.mantisbt.org/bugs/view.php?id=13056
http://www.mantisbt.org/bugs/view.php?id=9333
Louis BAYLE
Tel: +33 (0)4.42.604.734
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev