Bug 1127198

Summary: [xmlrpc] Invoke TestCase.get_text to get a nonexistent version, system returns 500 error.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: XMLRPCAssignee: Yang Ren <ryang>
Status: VERIFIED --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 3.8.10CC: cqi, leiwang, ryang
Target Milestone: ---   
Target Release: 3.8.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description yangqiu 2014-08-06 11:22:25 UTC
Description of problem:
as summary.

Version-Release number of selected component (if applicable):
v3.8.10-1 on devel server.

How reproducible:
100%

Steps to Reproduce:
1.There is a case which has 2 version for text.
2.Invoke TestCase.get_text to get a nonexistent version, like:
n.TestCase.get_text(293373,3)

Actual results:
system returns 500 error like :
Fault: <Fault 500: ["class NoneText has no attribute 'serialize'"]>

Expected results:
system show warning like TestPlan.get_text: 
"No case text with version '3' found."

Additional info:

Comment 1 Tingting Zhao 2014-08-11 03:42:23 UTC
verify on devel server with v3.8.10-1----->pass
verify steps:
1.invoke n.TestCase.get_text(293373,10)
return null instead of 500 error.
2.invoke n.TestCase.get_text(293373,1)
return the texts of the case.