MantisBT - TestLink
View Issue Details
0008417TestLinkAPI - XMLRPCpublic2018-10-17 12:392018-11-09 09:01
kaiadelmann 
fman 
normalmajoralways
resolvedfixed 
1.9.18 (2018 Q3) 
1.9.19 (2019 Q1) 
MySQL
Chrome, Opera
7.1
READY FOR TESTING
0008417: Cannot download attachments to test cases
When attempting to download attachments to test cases by calling tl.getTestCaseAttachments() on the XML-RPC-API only an empty string is returned, despite file(s) beeing attached to the test case.
* Attach a file to a testcase
* Call tl.getTestCaseAttachments() with the ID of the above altered test case
This bug happened only after updating from 1.9.17 to 1.9.18 yesterday.
I first thought that it had something to do with the testlink-java-api, but a "normal" XML-RPC-API-call e.g. via browser addons for that purpose yields the same result.
No tags attached.
child of 0008397closed fman Availables hot-fixes for 1.9.18 & How To get full fixed package from GitHub 
Issue History
2018-10-17 12:39kaiadelmannNew Issue
2018-10-17 16:55fmanNote Added: 0028030
2018-10-19 07:38kaiadelmannNote Added: 0028041
2018-10-19 15:37fmanNote Added: 0028043
2018-10-19 15:37fmanQA Team - Task Workflow Status => READY FOR TESTING
2018-10-19 15:37fmanStatusnew => resolved
2018-10-19 15:37fmanFixed in Version => 1.9.19 (2019 Q1)
2018-10-19 15:37fmanResolutionopen => fixed
2018-10-19 15:37fmanAssigned To => fman
2018-10-19 15:37fmanRelationship addedchild of 0008397
2018-11-09 08:53hughkayNote Added: 0028205
2018-11-09 08:59kaiadelmannNote Added: 0028206
2018-11-09 09:01hughkayNote Added: 0028207

Notes
(0028030)
fman   
2018-10-17 16:55   
on 1.9.18 attachment management has been changed, then this means that

1. XMLRPC Server code need to be changed (need to check if already done)
2. Clients need to be changed also.

you can read details on
https://github.com/TestLinkOpenSourceTRMS/testlink-code/wiki [^]

apologize for the inconvenience.
(0028041)
kaiadelmann   
2018-10-19 07:38   
I created a fix for this one method and started a pull request.
(0028043)
fman   
2018-10-19 15:37   
Pull Request done
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/769daca9098629938700b62812ea9d96363ae309 [^]
(0028205)
hughkay   
2018-11-09 08:53   
@kaiadelmann, @fman: What's the actual (functional) diff of the file?
git reports that the whole file content was changed, but obviously this is not the case. Which method is affected?
(0028206)
kaiadelmann   
2018-11-09 08:59   
@hughkay: The affected method is getTestCaseAttachments().
(0028207)
hughkay   
2018-11-09 09:01   
@kaiadelmann: Thanks a lot! That saves me lots of work merging the updated file to my existing Testlink project.