SVN Process got stuck and the plugin goes into loop
Created by: Selonka
Hi,
Iam running Mantis 2.23 with XAMPP 3.2.4 on Window server 2016 and got the following issue, after I setup the svn(binary version 1.8) settings, the svn process started on the the server is running forever with no usage of cpu und no change in memory consumption. The plugin gets in a kind of loop, waiting for data.
After killing the svn process manually, the loop ends and the plugin creates some log entrys, but no data is imported.
I found a solution in altering the code of the sourceSVN.php I simply changed these two lines near line 342
$t_svn_out = stream_get_contents( $t_pipes[1] );
fclose( $t_pipes[1] );
$t_stderr = stream_get_contents( $t_pipes[2] );
fclose( $t_pipes[2] );
Iam a noob with php, so I dont know if these changes are appropriate, but after the changing these lines the import of my svn data runs smoothly.
I will create a pull request for this!