Bug 691652

Summary: XMLRPC interface TestRun.create crash
Product: [Other] TCMS Reporter: Yang Ren <ryang>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: CLOSED NOTABUG QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DevelCC: ctang, junzhang, nli, vchen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-14 09:46:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yang Ren 2011-03-29 07:19:45 UTC
Description of problem:
I tried to create a test run in tcms-stage.englab.bne.redhat.com

server = 'tcms-stage.englab.bne.redhat.com'
n = NitrateKerbXmlrpc('https://'+ server + '/xmlrpc/')
n.server.Auth.login_krbv
n.server.TestRun.create({'build': 1154,
 'manager': 686,
 'plan': 3584,
 'product': 273,
 'product_version': '1.0',
 'summary': 'Test run for acceptance - li-0.58-1.el6_0'}
)

It crashed and I got a 33.7M traceback.

Comment 1 Yang Ren 2011-03-29 07:23:40 UTC
It's too big to upload as attachment. I put it on a server.
#wget http://10.66.8.117/traceback.txt

Comment 2 Yuguang Wang 2011-03-29 07:36:24 UTC
hi ryang, try this:

server = 'tcms-stage.englab.bne.redhat.com'
n = NitrateKerbXmlrpc('https://'+ server + '/xmlrpc/')
n.server.Auth.login_krbv
n.server.TestRun.create({'build': 1154,
 'manager': 686,
 'plan': 3584,
 'product': 273,
 'product_version': 1059,
 'summary': 'Test run for acceptance - li-0.58-1.el6_0'}
)


The product version should also be the *id* of the product, in this case, it's 1059: https://tcms-stage.englab.bne.redhat.com/admin/management/version/?product__id__exact=273

Comment 3 Yuguang Wang 2011-03-29 10:06:06 UTC
I finally got the reason, it's caused by a form submit overwritten problem.
(secret key got lost and would always be null while cloning).

Already fixed but not yet online, 
will inform u to verify when it's online, thanks.

Comment 4 Yuguang Wang 2011-03-29 10:07:07 UTC
--Uh, ignore comment 3, made a mistake.--
(In reply to comment #3)
> I finally got the reason, it's caused by a form submit overwritten problem.
> (secret key got lost and would always be null while cloning).
> 
> Already fixed but not yet online, 
> will inform u to verify when it's online, thanks.