Bug 1472070 - distros grid search for "Tag is not" gives 500 Internal Server Error: AttributeError: 'module' object has no attribute 'distro_table'
Summary: distros grid search for "Tag is not" gives 500 Internal Server Error: Attribu...
Alias: None
Product: Beaker
Classification: Community
Component: general
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: 24.4
Assignee: Dan Callaghan
QA Contact: Anwesha Chatterjee
Keywords: Patch, Regression
Depends On:
TreeView+ depends on / blocked
Reported: 2017-07-18 03:04 UTC by Dan Callaghan
Modified: 2017-10-03 03:57 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2017-10-03 03:57:41 UTC

Attachments (Terms of Use)

Description Dan Callaghan 2017-07-18 03:04:09 UTC
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. From the menu: Distros -> All
2. Show Search Options
3. Table = Tag, Operation = is not, Value = <anything>
4. Search

Actual results:

Expected results:
should return matching distros

Additional info:
Error was found by pylint, while I was working on enabling attribute checking.

File "/usr/lib/python2.6/site-packages/bkr/server/search_utility.py", line 1229, in tag_is_not_filter
    return not_(model.distro_table.c.id.in_(ids))
AttributeError: 'module' object has no attribute 'distro_table'

Comment 1 Dan Callaghan 2017-07-18 05:58:59 UTC

This would have been a regression in 0.16.

Comment 3 Anwesha Chatterjee 2017-09-18 06:32:25 UTC
Verified that "Tag is not" distros grid search does not return 500 Server Error and instead returns distros matching the search criteria as expected.

Comment 4 Dan Callaghan 2017-10-03 03:57:41 UTC
Beaker 24.4 has been released.

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