Bug 1108500

Summary: [test case]In case detail page, user add a jira_id with space at the front of input, system will show wrong warning.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: ApplicationAssignee: cqi
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: low Docs Contact:
Priority: low    
Version: 3.8.8CC: cqi, junzhang, ryang, 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: 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]In case detail page, user add a jira_id with space at the front of input, system will show wrong warning. none

Description yangqiu 2014-06-12 07:04:30 UTC
Created attachment 907963 [details]
[test case]In case detail page, user add a jira_id with space at the front of input, system will show wrong warning.

Description of problem:
as subjiect.

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

How reproducible:
100%

Steps to Reproduce:
1.Enter a case detail page, then enter bugs tab.
https://tcms-devel.app.eng.nay.redhat.com/case/293140/#bug
2.Choose issue type is JIRA, then input jira_id with space at the front of input, like '   SC-12'. 
3.Click add btn.

Actual results:
System show warning like:
<ul class="errorlist"><li>__all__<ul class="errorlist"><li>Please input a valid jira id.</li></ul></li></ul>

Expected results:
system show warning like:
Please input a valid jira id.

Additional info:

Comment 1 cqi 2014-06-12 12:31:16 UTC
fixed.

Comment 2 yangqiu 2014-06-13 05:44:14 UTC
Verify this bug on v3.8.8-1 on devel server.--->Pass
Verify steps are same as description.