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:
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?
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""