Bug 691652 - XMLRPC interface TestRun.create crash
Summary: XMLRPC interface TestRun.create crash
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: TCMS
Classification: Other
Component: Application
Version: Devel
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Yuguang Wang
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-29 07:19 UTC by Yang Ren
Modified: 2011-04-14 09:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-14 09:46:42 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.