Subject: | Crash in TestLink::API when creating TestSuite with default order or with -1 |
Date: | Wed, 11 Apr 2018 14:17:14 +0000 |
To: | "bug-TestLink-API [...] rt.cpan.org" <bug-TestLink-API [...] rt.cpan.org> |
From: | "Zvansky, Alex" <Alex.Zvansky [...] dell.com> |
Hello George,
I'm using your project to create some scripts in perl for Testlink API. I hope you still maintain it.
In my script I'm trying to create TestSuite with default order (last) but I get the traceback below.
Here is the line from my script:
my $NewDstTSuiteID = $tl->createTestSuite ($ProjectID, $SrcTSuite->{'name'}, $Desc,$DstTSuiteID);
If I omit order from this method, or call it with order=-1 I get this traceback.
I hope you can help.
I'm using perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread.
Thank you in advance,
Alex
junk after document element at line 1, column 91, byte 91 at C:/Dwimperl/perl/vendor/lib/XML/Parser.pm line 187
<pre> ============================================================================== </pre><pre> DB Access Error - debug
_print_backtrace() OUTPUT START </pre><pre> ATTENTION: Enabling more debug info will produce path disclosure weakness (C
WE-200) </pre><pre> Having this additional Information could be useful for reporting </pre><pre> i
ssue to development TEAM. </pre><pre> ============================================================================== </p
Show quoted text
re><pre>#0 database->exec_query(INSERT INTO nodes_hierarchy (name,node_type_id,node_order,parent_id) VALUES('IO patter
ns', 2,-1,351925)) called at [/var/www/html/lib/functions/tree.class.php:166]
#1 tree->new_node(351925, 2, IO patterns, -1) called at [/var/www/html/lib/functions/testsuite.class.php:192]
#2 testsuite->create(351925, IO patterns, Clone of TS id 351927, -1, 1, block) called at [/var/www/html/lib/api/xmlrpc/
v1/xmlrpc.class.php:3903]
#3 TestlinkXMLRPCServer->createTestSuite(Array ([order] => -1,[testsuitename] => IO patterns,[testprojectid] => 349132,
[details] => Clone of TS id 351927,[devKey] => 21273e9cd06dcdc45113e7e39992acd9,[parentid] => 351925)) called at [/var/w
ww/html/third_party/xml-rpc/class-IXR.php:348]
#4 IXR_Server->call(tl.createTestSuite, Array ([0] => Array ([order] => -1,[testsuitename] => IO patterns,[testprojecti
d] => 349132,[details] => Clone of TS id 351927,[devKey] => 21273e9cd06dcdc45113e7e39992acd9,[parentid] => 351925))) cal
led at [/var/www/html/third_party/xml-rpc/class-IXR.php:300]
#5 IXR_Server->serve() called at [/var/www/html/third_party/xml-rpc/class-IXR.php:283]
#6 IXR_Server->IXR_Server(Array ([tl.reportTCResult] => this:reportTCResult,[tl.setTestCaseExecutionResult] => this:rep
ortTCResult,[tl.createBuild] => this:createBuild,[tl.createPlatform] => this:createPlatform,[tl.createTestCase] => this:
createTestCase,[tl.createTestCaseSteps] => this:createTestCaseSteps,[tl.createTestPlan] => this:createTestPlan,[tl.creat
eTestProject] => this:createTestProject,[tl.createTestSuite] => this:createTestSuite,[tl.deleteTestCaseSteps] => this:de
leteTestCaseSteps,[tl.deleteTestPlan] => this:deleteTestPlan,[tl.deleteTestProject] => this:deleteTestProject,[tl.upload
ExecutionAttachment] => this:uploadExecutionAttachment,[tl.uploadRequirementSpecificationAttachment] => this:uploadRequi
rementSpecificationAttachment,[tl.uploadRequirementAttachment] => this:uploadRequirementAttachment,[tl.uploadTestProject
Attachment] => this:uploadTestProjectAttachment,[tl.uploadTestSuiteAttachment] => this:uploadTestSuiteAttachment,[tl.upl
oadTestCaseAttachment] => this:uploadTestCaseAttachment,[tl.uploadAttachment] => this:uploadAttachment,[tl.assignRequire
ments] => this:assignRequirements,[tl.addTestCaseToTestPlan] => this:addTestCaseToTestPlan,[tl.addPlatformToTestPlan] =>
this:addPlatformToTestPlan,[tl.removePlatformFromTestPlan] => this:removePlatformFromTestPlan,[tl.getExecCountersByBuil
d] => this:getExecCountersByBuild,[tl.getIssueTrackerSystem] => this:getIssueTrackerSystem,[tl.getProjects] => this:getP
rojects,[tl.getProjectKeywords] => this:getProjectKeywords,[tl.getProjectPlatforms] => this:getProjectPlatforms,[tl.getP
rojectTestPlans] => this:getProjectTestPlans,[tl.getTestCaseAssignedTester] => this:getTestCaseAssignedTester,[tl.getTes
tCaseBugs] => this:getTestCaseBugs,[tl.getTestCaseKeywords] => this:getTestCaseKeywords,[tl.getTestProjectByName] => thi
s:getTestProjectByName,[tl.getTestPlanByName] => this:getTestPlanByName,[tl.getTestPlanPlatforms] => this:getTestPlanPla
tforms,[tl.getTotalsForTestPlan] => this:getTotalsForTestPlan,[tl.getBuildsForTestPlan] => this:getBuildsForTestPlan,[tl
.getLatestBuildForTestPlan] => this:getLatestBuildForTestPlan,[tl.getLastExecutionResult] => this:getLastExecutionResult
,[tl.getTestSuitesForTestPlan] => this:getTestSuitesForTestPlan,[tl.getTestSuitesForTestSuite] => this:getTestSuitesForT
estSuite,[tl.getTestCasesForTestSuite] => this:getTestCasesForTestSuite,[tl.getTestCasesForTestPlan] => this:getTestCase
sForTestPlan,[tl.getTestCaseIDByName] => this:getTestCaseIDByName,[tl.getTestCaseCustomFieldDesignValue] => this:getTest
CaseCustomFieldDesignValue,[tl.getTestCaseCustomFieldExecutionValue] => this:getTestCaseCustomFieldExecutionValue,[tl.ge
tTestCaseCustomFieldTestPlanDesignValue] => this:getTestCaseCustomFieldTestPlanDesignValue,[tl.getTestSuiteCustomFieldDe
signValue] => this:getTestSuiteCustomFieldDesignValue,[tl.getTestPlanCustomFieldDesignValue] => this:getTestPlanCustomFi
eldDesignValue,[tl.getReqSpecCustomFieldDesignValue] => this:getReqSpecCustomFieldDesignValue,[tl.getRequirementCustomFi
eldDesignValue] => this:getRequirementCustomFieldDesignValue,[tl.getFirstLevelTestSuitesForTestProject] => this:getFirst
LevelTestSuitesForTestProject,[tl.getTestCaseAttachments] => this:getTestCaseAttachments,[tl.getTestCase] => this:getTes
tCase,[tl.getFullPath] => this:getFullPath,[tl.getTestSuiteByID] => this:getTestSuiteByID,[tl.getUserByLogin] => this:ge
tUserByLogin,[tl.getUserByID] => this:getUserByID,[tl.deleteExecution] => this:deleteExecution,[tl.doesUserExist] => thi
s:doesUserExist,[tl.updateTestCaseCustomFieldDesignValue] => this:updateTestCaseCustomFieldDesignValue,[tl.updateTestCas
e] => this:updateTestCase,[tl.setTestCaseExecutionType] => this:setTestCaseExecutionType,[tl.assignTestCaseExecutionTask
] => this:assignTestCaseExecutionTask,[tl.unassignTestCaseExecutionTask] => this:unassignTestCaseExecutionTask,[tl.addTe
stCaseKeywords] => this:addTestCaseKeywords,[tl.removeTestCaseKeywords] => this:removeTestCaseKeywords,[tl.updateTestSui
teCustomFieldDesignValue] => this:updateTestSuiteCustomFieldDesignValue,[tl.updateBuildCustomFieldsValues] => this:updat
eBuildCustomFieldsValues,[tl.getTestSuite] => this:getTestSuite,[tl.updateTestSuite] => this:updateTestSuite,[tl.checkDe
vKey] => this:checkDevKey,[tl.about] => this:about,[tl.testLinkVersion] => this:testLinkVersion,[tl.setTestMode] => this
:setTestMode,[tl.ping] => this:sayHello,[tl.sayHello] => this:sayHello,[tl.repeat] => this:repeat)) called at [/var/www/
html/lib/api/xmlrpc/v1/xmlrpc.class.php:273]
#7 TestlinkXMLRPCServer->__construct() called at [/var/www/html/lib/api/xmlrpc/v1/xmlrpc.php:25]
</pre> at C:/Dwimperl/perl/site/lib/TestLink/API.pm line 133
Press any key to continue . . .