Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007623TestLinkBug Tracking System - JIRA Integrationpublic2016-07-13 15:092016-07-15 06:55
Reporterfocbe 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.9.14 (2015 Q3) 
Fixed in Version 
Summary0007623: API change in the JIRA REST API for user
DescriptionThere must have been an API change in the JIRA REST API 6.1 for the user endpoint.

https://developer.atlassian.com/static/rest/jira/6.1.html [^]
http://example.com:8080/jira/rest/api/2/user [^] [GET, PUT, POST, DELETE]

Fix for third_party\fayp-jira-restJira.php in line 73:

public function getUser($username)
    {
    /* (...) this call changed from search/user to just user */
        $this->request->openConnect($this->host . 'user/?username=' . $username, 'GET');
    }
Steps To ReproduceOpen the JIRA API
https://jira.example.com/rest/api/latest/user?username=$username [^] --> OK
https://jira.example.com/rest/api/2/user?username=$username [^] --> OK

Old calls do not work
https://jira.example.com/rest/api/latest/search/user?username=$username [^] --> 404
https://jira.example.com/rest/api/2/search/user?username=$username [^] --> 404
Additional InformationJIRA v7.1.8 71012
Testlink 1.9.14 (from bitnami-testlink-1.9.14-3-module-windows-installer)
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP Version
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0025077)
fman (administrator)
2016-07-13 16:41

thanks
(0025082)
fman (administrator)
2016-07-15 06:18
edited on: 2016-07-15 06:26

Important info not provided:
how can this issue be reproduced ?
how this affects TestLink integration with JIRA?

JIRA 7 docs
https://docs.atlassian.com/jira/REST/7.0-SNAPSHOT/ [^]

(0025083)
focbe (reporter)
2016-07-15 06:55

Follow the steps to reproduce the issue on any current JIRA API version.

As mentioned in the pull request I created for the original project and Testlink on github the correct API call would have been user/?username= from the beginning.
15-Feb-2012 - JIRA API 5.0 : https://docs.atlassian.com/jira/REST/5.0/#id199293 [^] (OK)
21-May-2013 - JIRA API 6.0 : https://docs.atlassian.com/jira/REST/6.0/#id160233 [^] (OK)
29-Jun-2015 - JIRA API 7.0-SNAPSHOT: https://docs.atlassian.com/jira/REST/7.0-SNAPSHOT/#api/2/user-getUser [^] (OK)

- Issue History
Date Modified Username Field Change
2016-07-13 15:09 focbe New Issue
2016-07-13 16:41 fman Note Added: 0025077
2016-07-15 06:18 fman Note Added: 0025082
2016-07-15 06:19 fman Assigned To => fman
2016-07-15 06:19 fman Status new => feedback
2016-07-15 06:26 fman Note Edited: 0025082 View Revisions
2016-07-15 06:55 focbe Note Added: 0025083
2016-07-15 06:55 focbe Status feedback => assigned



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker