[RESOLVED] Testlink 1.9 and JIRA 4 configuration problems

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
SoniaRI
TestLink user
Posts: 2
Joined: Wed May 18, 2011 3:43 pm

[RESOLVED] Testlink 1.9 and JIRA 4 configuration problems

Post by SoniaRI »

Hi folks!

Version: - TestLink 1.9 (Prague)
- JIRA 4

I did the following steps in order to configure JIRA integration via SOAP:


1. Configure JIRA info to the jirasoap.cfg.php config file in the following way.

//-----------------------------------------------------------------------------------------

/** The Username being used by JIRA logon */
define('BUG_TRACK_USERNAME', 'myuser');

/** The Password being used by JIRA logon*/
define('BUG_TRACK_PASSWORD', 'mypassword');
/** link of the web server for JIRA*/
define('BUG_TRACK_HREF',"https://jira/");
/** path of JIRA WSDL */
define('BUG_TRACK_SOAP_HREF', "rpc/soap/jirasoapservice-v2?wsdl");

/** link of the web server for jira ticket*/
define('BUG_TRACK_SHOW_BUG_HREF', "browse/");
/** link of the web server for creating new jira ticket*/
define('BUG_TRACK_ENTER_BUG_HREF',"secure/CreateIssue.jspa");

//-------------------------------------------------------------------------------------------

2. Added $g_interface_bugs='JIRASOAP'; to the custom_config.inc.php file
3. Restarted apache

As a resul I got the following exception when I click on some test case in test execution window:

Fatal error: Uncaught SoapFault exception: WSDL SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://jira/rpc/soap/jirasoapservice-v2?wsdl' : failed to load external entity "https://jira/rpc/soap/jirasoapservice-v2?wsdl" in C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_jirasoap.php:63 Stack trace: #0 C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_jirasoap.php(63): SoapClient->SoapClient('https://jira/rp...') #1 C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_bugtracking.php(371): jirasoapInterface->jirasoapInterface() #2 C:\xampp\htdocs\testlink-1.9\lib\execute\execSetResults.php(86): require_once('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_jirasoap.php on line 63


Could anybody help me to solve my problem?



Thanks in advance!

Sonia
pharmmed
Advanced user
Posts: 19
Joined: Fri Jan 21, 2011 8:48 am

Re: Testlink 1.9 and JIRA 4 configuration problems

Post by pharmmed »

Hi,

are you sure you activated the soap interface in jira?
with the old metho in testlink (which should still work when I'm correct my we didn't accomplish to get it to work yet) you only had to use the jira-DB user in testlink - so no soap involved.

when you configure testlink 1.9 to use jira soap you have to activate this feature in jira (both in the general settings an in the plugin section).
We are still having troubles to get it all to work though but maybe this is where your problem is right now :)
greaze
Advanced user
Posts: 25
Joined: Mon Dec 08, 2008 4:03 pm

Re: Testlink 1.9 and JIRA 4 configuration problems

Post by greaze »

Hi, were you able to resolve this issue, if so could you let me know how. We have the same issue here. I know for sure that JIRA soap is active and also testlink code works fine, since I have tested it on another installation.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Testlink 1.9 and JIRA 4 configuration problems

Post by fman »

are you able to get the WSDL with your browser ?
greaze
Advanced user
Posts: 25
Joined: Mon Dec 08, 2008 4:03 pm

Re: Testlink 1.9 and JIRA 4 configuration problems

Post by greaze »

Hi fman, I did a wget from my testlink server and I was able to get the xml. There seems to be no issues with firewall etc.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Testlink 1.9 and JIRA 4 configuration problems

Post by fman »

1. Can you try with HTTP not HTTPS ? maybe this is the issue.
2. try to install soapUI and do some test with this tool.
3. give a look to https://bugs.php.net/bug.php?id=31050
greaze
Advanced user
Posts: 25
Joined: Mon Dec 08, 2008 4:03 pm

Re: Testlink 1.9 and JIRA 4 configuration problems

Post by greaze »

[Resolved]
The information on this link https://bugs.php.net/bug.php?id=31050 as per your previous post helped. Thanks.
In summary it was a problem with php / apache permission.

Doing the following worked:
$setsebool -P httpd_can_network_connect on
Post Reply