Bug 1094148

Summary: [test case]When create a case in the following case, system will go to 500 error page.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: ApplicationAssignee: cqi
Status: CLOSED NOTABUG QA Contact: tools-bugs <tools-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 3.8.7CC: aigao, cqi, ctang, dli, fhuang, jianchen, junzhang, jzhao, nli, swei, 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: 2014-05-05 09:07:06 UTC 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:
Attachments:
Description Flags
[test case]When create a case in the following case, system will go to 500 error page. none

Description yangqiu 2014-05-05 07:30:03 UTC
Created attachment 892448 [details]
[test case]When create a case in the following case, system will go to 500 error page.

Description of problem:
as subject

Version-Release number of selected component (if applicable):
v3.8.7-4 on qa server.

How reproducible:
100%

Steps to Reproduce:
1.Enter a plan detail page.
https://tcms.app.qa.eng.nay.redhat.com/plan/10687/yang-qiu-ce-shi-plan-a#testcases
2.Click 'case-write new case' link to enter create case page.
3.Fill case info includes Summary|Component|Category|Setup|Actions|Expected Results|Breakdown|Priority|Default Tester|Product|Automated.
4.Click 'save and return to plan' btn.

Actual results:
system will go to 500 error page.

Expected results:
System save the new case right.


Additional info:

Comment 1 yangqiu 2014-05-05 09:07:06 UTC
This issue caused by dirty data in db.
When query user by  
User.objects.get(Q(email='qiyang') | Q(username='qiyang'))
there are Multiple objects returns.
While the dirty data caused by wrong config.