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...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: general
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 24.4
Assignee: Dan Callaghan
QA Contact: Anwesha Chatterjee
URL:
Whiteboard:
Depends On:
Blocks:
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)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-03 03:57:41 UTC
Embargoed:


Attachments (Terms of Use)

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

How reproducible:
easily

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:
500

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
https://gerrit.beaker-project.org/5743

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.