Bug 1107975

Summary: Cannot auto-complete tag name when enter new tag name in a case page, server error happens
Product: [Other] TCMS Reporter: cqi
Component: ApplicationAssignee: cqi
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.8.8CC: cqi, junzhang, leiwang, ryang, vchen
Target Milestone: ---   
Target Release: 3.8.9   
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
error page none

Description cqi 2014-06-11 08:03:25 UTC
Description of problem:
when enter new tag name in a case page, cannot show auto-complete list and server error happens. Following is the error raised in development env.

AttributeError at /management/tags/

'Objects' object has no attribute 'object'

Request Method: 	GET
Request URL: 	http://127.0.0.1:8000/management/tags/?name__startswith=abd&info_type=tags&format=ulli&field=name
Django Version: 	1.5.5
Exception Type: 	AttributeError
Exception Value: 	

'Objects' object has no attribute 'object'

Exception Location: 	./tcms/core/ajax.py in get, line 214
Python Executable: 	/home/chen/Virtualenvs/nitrate/bin/python
Python Version: 	2.7.5
Python Path: 	

['.',
 '.',
 '/home/chen/Virtualenvs/nitrate/bin',
 '/home/chen/Virtualenvs/nitrate/lib64/python27.zip',
 '/home/chen/Virtualenvs/nitrate/lib64/python2.7',
 '/home/chen/Virtualenvs/nitrate/lib64/python2.7/plat-linux2',
 '/home/chen/Virtualenvs/nitrate/lib64/python2.7/lib-tk',
 '/home/chen/Virtualenvs/nitrate/lib64/python2.7/lib-old',
 '/home/chen/Virtualenvs/nitrate/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7',
 '/usr/lib/python2.7',
 '/usr/lib64/python2.7/lib-tk',
 '/home/chen/Virtualenvs/nitrate/lib/python2.7/site-packages',
 './tcms/core/lib']



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 cqi 2014-06-11 08:20:05 UTC
tag can be added to plan, case and run. this bug also causes tag name auto-completion fails in plan page.

Comment 2 yangqiu 2014-06-11 10:22:50 UTC
Created attachment 907567 [details]
error page

Comment 3 cqi 2014-06-11 11:17:34 UTC
Fixed in commit 942749e

I found the 404 error in devel server too. I guess this may be caused by this bug due to that 404 does not happen in my dev env after fix.

Comment 4 yangqiu 2014-07-08 09:21:55 UTC
verify this bug on v3.8.9-1 on test server.---Pass
verify steps are same as description.