Bug 1107975 - Cannot auto-complete tag name when enter new tag name in a case page, server error happens
Summary: Cannot auto-complete tag name when enter new tag name in a case page, server ...
Keywords:
Status: VERIFIED
Alias: None
Product: TCMS
Classification: Other
Component: Application
Version: 3.8.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.8.9
Assignee: cqi
QA Contact: Nobody
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-11 08:03 UTC by cqi
Modified: 2023-10-20 16:22 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
error page (262.53 KB, image/jpeg)
2014-06-11 10:22 UTC, yangqiu
no flags Details

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.


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