Integrating Mantis with a remote SVN host

Post about your customizations to share with others.

Moderators: Developer, Contributor

crazyminsc
Posts: 2
Joined: 26 Jun 2009, 10:03

Re: Integrating Mantis with a remote SVN host

Post by crazyminsc »

Hello,

we have the same problem, is there solution ? We have tried to use:

Code: Select all

$g_source_control_server = array('xx.xx.xx.xx');
but without success. In the access log is printed :

Code: Select all

[26/Jun/2009:13:58:53 +0200] "POST /mantis/core/checkincurl.php HTTP/1.1" 200 39 "-" "curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"
but those issues remain without comments :(.

Thank you for the reply.
Kirill
Posts: 640
Joined: 25 Nov 2007, 08:05
Location: Kaliningrad, RF
Contact:

Re: Integrating Mantis with a remote SVN host

Post by Kirill »

Try use http://git.mantisforge.org/w/source-integration.git in 1.2.x version of MantisBT
Nimitz1061
Posts: 12
Joined: 05 May 2009, 18:39
Contact:

Re: Integrating Mantis with a remote SVN host

Post by Nimitz1061 »

also, try adding 'localhost' to the array of authorized servers.
calraiden

Re: Integrating Mantis with a remote SVN host

Post by calraiden »

Change :
# check if we are called from the right IP ( @todo might wanna use a array here )
# check if we are called from the right IP ( @todo might wanna use a array here )
if($_SERVER['REMOTE_ADDR'] != $t_source_control_server )
{
echo "Not allowed from this IP !!\n";
exit(0);
}

to:

Code: Select all

# check if we are called from the right IP ( @todo might wanna use a array here )
	if(!in_array($_SERVER['REMOTE_ADDR'],$t_source_control_server ))
	{
		echo "Not allowed from this IP {$_SERVER['REMOTE_ADDR']}!!\n";
		exit(0);
	}	

Post Reply