I got more work on my issue.
Now with TestLink 1.9.14 (Jira 6.2.6 inhouse http).
I now understand that the jira user I got for connect TestLink to jira does not have the enough rights for the way TestLink works.
I only intend TestLink connect jira to read issues infos. So the jira user I was granted only have read permission on the needed jira projects.
When TestLink try to connect jira it first test the connection using the jira REST API:
user/search/?username=jirauser
This need need enough power to search the users of jira. My jira user does not have such power.
It seems to me that we do not need such power in that case.
I agree we need to test the connexion to jira and also to test if the user exists.
It seems to me it would be enough to use a jira request like
[*]
myself
[*]
user?username=jirauser
(that is not search/user and is simpler)
Both requests exist in jira Rest api v2 (latest) and both works my case.
Mantis 7317 reports idem with solution (my jira admin guys cannot accept)
Mantis 7345 reports same issue I guess and it was closed 'unable to reproduce'.
The fact is the user testlink.forum used in jiraOnDemandCfg.xml example have enough power:
Groups: developers, jira-users, users
Perhaps test could be done with less rights?
I suggest to test the connection using the myself request, so not use the getUser() function in
testlink/third_party/fayp-jira-rest/Jira.php
That way:
public function testLogin()
{
$user = $this->/*getUser*/getMyself($this->request->username);
if (!empty($user) && $this->request->lastRequestStatus()) {
return true;
}
return false;
}
public function getMyself($username)
{
$this->request->openConnect($this->host . 'myself', 'GET');
$this->request->execute();
$user = json_decode($this->request->getResponseBody());
return $user;
}
What do you think I am right?
Does this could be added to TestLink that way?
So, as it was part of the title of this topic, this issue does not concern httpS: it works for me with both http and https.
Thanks for your concern and comments.