YouTrack Inegration Issue

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

YouTrack Inegration Issue

Postby gcomeau » Fri Feb 08, 2019 4:24 pm

I am trying to integrate the newest version of testlink with our internal youTrack instance. When I enter the required xml (below) and test the connection it returns:

Code: Select all
 Test Connection KO


XML:

Code: Select all
<issuetracker>
    <username>giltea</username>
    <password>passwordhere</password>
    <uribase>https://youtrack.example.local/issues</uribase>
    <project>AK</project>
</issuetracker>


When I test the connection a second time the page errors out and I am getting the following errors in my php logs:

Code: Select all
08-Feb-2019 15:45:26 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to YouTrack\YouTrackError::__construct() must be an instance of SimpleXMLElement or null, boolean given, called in /usr/share/nginx/html/testlink/third_party/youtrackclient/src/youtrackclient.php on line 45 and defined in /usr/share/nginx/html/testlink/third_party/youtrackclient/src/youtrackclient.php:107
Stack trace:
#0 /usr/share/nginx/html/testlink/third_party/youtrackclient/src/youtrackclient.php(45): YouTrack\YouTrackError->__construct(false)
#1 /usr/share/nginx/html/testlink/third_party/youtrackclient/src/connection.php(64): YouTrack\YouTrackException->__construct('/user/login', Array, 'HTTP/1.1 100 Co...')
#2 /usr/share/nginx/html/testlink/third_party/youtrackclient/src/connection.php(33): YouTrack\Connection->_login('giltea', 'password')
#3 /usr/share/nginx/html/testlink/lib/issuetrackerintegration/youtrackrestInterface.class.php(86): YouTrack\Connection->__construct('https://youtrack...', 'giltea', 'password')
#4 /usr/share/nginx/html/testlink/lib/issuetra in /usr/share/nginx/html/testlink/third_party/youtrackclient/src/youtrackclient.php on line 107


Any idea what is causing this issue and how I can get around it or increase debug level to get better information?

Giltea
gcomeau
TestLink user
 
Posts: 8
Joined: Wed Feb 06, 2019 6:06 pm

Re: YouTrack Inegration Issue

Postby gcomeau » Fri Feb 08, 2019 5:26 pm

Scratch this, it looks like our youtrack is some how setup differently than the rest of our infrastructure and is not using our ldap credentials. Once I checked my credentials were email based the connect is listed as "OK"

couple notes on this:

Error reporting is not very intuitive, if it had thrown an authorization error, it would have been very easy to fix.

The connection is not valid exception says "Test Connection KO", this is a very poor error message. What about something like "Test Connection Failed""
gcomeau
TestLink user
 
Posts: 8
Joined: Wed Feb 06, 2019 6:06 pm

Re: YouTrack Inegration Issue

Postby gcomeau » Fri Feb 08, 2019 7:28 pm

Interestingly the only string I could find with this is in the below file:
File: locale\en_GB\strings.txt

$TLS_issueTracker_connection_ko = 'Test Connection KO';
$TLS_codeTracker_connection_ko = 'Test Connection KO';

This should be updated to be something like:
"Test Connection Failed"
gcomeau
TestLink user
 
Posts: 8
Joined: Wed Feb 06, 2019 6:06 pm


Return to Installation and configuration



Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

cron