Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006044TestLinkAPI - XMLRPCpublic2013-11-13 22:022013-11-17 09:53
Reporterlczub 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.9.8 (2013 Q3 - bug fixing) 
Fixed in Version1.9.9 (2013 Q4 - bug fixing) 
Summary0006044: getTestCase() raise <500 Internal Server Error>, when testcaseexternalid includes no '-'
Descriptioncalling XMLRPC API method getTestCase() with an invalid testcaseexternalid, which does not includes a '-', returns a <500 Internal Server Error>.

Expectation is, that such an invalid testcaseexternalid would return like an unknown testcaseexternalid an api error code, which the external program could evaluate.

Equal failure occurs with other api methods, which accepts the argument testcaseexternalid
Steps To ReproduceReproduction with TestLink API Python Client v0.4.5-RC1
(from https://github.com/lczub/TestLink-API-Python-client/releases [^])
and TestLink Server 1.9.8

import testlink
tls = testlink.TestlinkAPIGeneric('http://YOURSERVER/testlink/lib/api/xmlrpc/v1/xmlrpc.php', [^] 'YOURDEVKEY')

for tc_ex_id in ['id-valid', 'idNOTvalid']:
    try:
        print "try ", tc_ex_id
        tls.getTestCase(testcaseexternalid=tc_ex_id)
    except testlink.testlinkerrors.TLResponseError as tl_err:
        print "Expected TL ResponseError", tl_err

creates following output

try id-valid
Expected TL ResponseError 5040: (getTestCase) - Test Case External ID (id-valid) does not exist!

try idNOTvalid
Traceback (most recent call last):
  ...
<ProtocolError for YOURSERVER/testlink/lib/api/xmlrpc/v1/xmlrpc.php: 500 Internal Server Error>
TagsNo tags attached.
Database (MySQL,Postgres,etc)Postgres
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships
child of 0005897closedfman Availables hot-fixes for 1.9.8 & How To get full fixed package from gitorious 

-  Notes
(0020025)
fman (administrator)
2013-11-13 22:32

https://gitorious.org/testlink-ga/testlink-code/commit/50e89e6bd0453edd26cfcb9561d1bd57e552a258 [^]
(0020042)
fman (administrator)
2013-11-17 09:53

1.9.9 Released

- Issue History
Date Modified Username Field Change
2013-11-13 22:02 lczub New Issue
2013-11-13 22:32 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2013-11-13 22:32 fman Note Added: 0020025
2013-11-13 22:32 fman Status new => resolved
2013-11-13 22:32 fman Fixed in Version => 1.9.9 (2013 Q4 - bug fixing)
2013-11-13 22:32 fman Resolution open => fixed
2013-11-13 22:32 fman Assigned To => fman
2013-11-13 22:33 fman Relationship added child of 0005897
2013-11-17 09:53 fman Note Added: 0020042
2013-11-17 09:53 fman Status resolved => closed



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker