MantisBT - TestLink
View Issue Details
0008979TestLinkAPI - XMLRPCpublic2020-08-13 22:282020-08-14 08:58
LinuxCentos 7Centos 7
1.9.19 (2019 Q1) 
0008979: API error. Response with malformed XML
I am observing a malformed XML responce with the Python and Perl API.
I am using Testlink 1.9.19. My current version is 1.9.17 and I don't have any issues for API on this version.
I also tested my perl and python modules for API interaction on the 1.9.20 version and it works well. While testing 1.9.20 , I observed some issues and also seems to have been reported by many others.Thats why I don't to use this version. ..
I see below error at the beginning of the XML API response

XML or text declaration not at start of entity at line 3, column 0, byte 2 at /usr/lib64/perl5/vendor_perl/XML/ line 187.

This issue can be produced/observed using below code

use TestLink::API;
my $tl = TestLink::API->new('', [^] 'xxxxapi-keyxxxxx');
#Look up test definitions
my $projects = $tl->getProjects();
print "$projects";

or Python code

import testlink
tls = testlink.TestlinkAPIClient('', [^] 'xxxxxxxapi-keyxxxxxxxxx')
print tls.getProjects()
No tags attached.
Issue History
2020-08-13 22:28amoljirgeNew Issue
2020-08-14 08:57fmanNote Added: 0029891
2020-08-14 08:57fmanQA Team - Task Workflow Status => TBD
2020-08-14 08:57fmanPriorityimmediate => high
2020-08-14 08:58fmanNote Edited: 0029891bug_revision_view_page.php?bugnote_id=29891#r6102
2020-08-14 08:58fmanStatusnew => resolved
2020-08-14 08:58fmanFixed in Version => 1.9.20_fixed
2020-08-14 08:58fmanResolutionopen => fixed
2020-08-14 08:58fmanAssigned To => fman

2020-08-14 08:57   
(edited on: 2020-08-14 08:58)
1. please upgrade to code in branch testlink_1_9_20_fixed
2. I can work of this only if you can reproduce it using our PHP clients, that is our reference, can not do test in another languages
3. if issue is not present in 1.9.20 we will not act