Skip to content
Permalink
Browse files

TICKET 7004: (Proxy problem)Testlink 1.9.13 cannot connect to JIRA

  • Loading branch information
fmancardi committed Mar 18, 2015
1 parent 35afa26 commit 8c1d459afe02d2032ef5803c650b075e2c10aaab
Showing with 25 additions and 2 deletions.
  1. +9 −1 config.inc.php
  2. +16 −1 lib/issuetrackerintegration/jirasoapInterface.class.php
@@ -18,7 +18,7 @@
*
* @filesource config.inc.php
* @package TestLink
* @copyright 2005-2014, TestLink community
* @copyright 2005-2015, TestLink community
* @link http://www.testlink.org
*
* @internal revisions
@@ -60,6 +60,7 @@
$tlCfg->tplanDesign = new stdClass();

$tlCfg->notifications = new stdClass();
$tlCfg->proxy = new stdClass();



@@ -1597,6 +1598,13 @@
// 'tcSearchView' => 'myOwnTCSearchView.tpl',
// 'tcEdit' => 'tcEdit_ultraCool.tpl');

// ----------------------------------------------------------------------------
/* [PROXY] */
$tlCfg->proxy->host = null;
$tlCfg->proxy->port = null;
$tlCfg->proxy->login = null;
$tlCfg->proxy->password = null;



// ----- End of Config ------------------------------------------------------------------
@@ -13,7 +13,7 @@
* not how is identified internally at DB level on TestLink
*
* @internal revisions
* @since 1.9.10
* @since 1.9.14
*
**/
class jirasoapInterface extends issueTrackerInterface
@@ -45,6 +45,19 @@ function __construct($type,$config,$name)
$this->support = new jiraCommons();
$this->support->guiCfg = array('use_decoration' => true);

$proxyCfg = config_get('proxy');
if(!is_null($proxyCfg->host))
{
$key2loop = array('host','port','login','password');
foreach($key2loop as $fi)
{
if(!is_null($proxyCfg->$fi))
{
$this->soapOpt['proxy_' . $fi] = $proxyCfg->$fi;
}
}
}

$this->methodOpt = array('buildViewBugLink' => array('addSummary' => true, 'colorByStatus' => true));
if( $this->setCfg($config) )
{
@@ -230,6 +243,8 @@ function getClient($opt=null)
// DO CAST any member before using it.
// If we do following call WITHOUT (string) CAST, SoapClient() fails
// complaining '... wsdl has to be an STRING or null ...'
//

$res['client'] = new SoapClient((string)$this->cfg->uriwsdl,$this->soapOpt);
$res['connected'] = true;
$res['msg'] = 'iupi!!!';

0 comments on commit 8c1d459

Please sign in to comment.
You can’t perform that action at this time.