Bug 1313706 - [BUG] Unable to filter content host by organization_id Description
Summary: [BUG] Unable to filter content host by organization_id Description
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.1.7
Hardware: All
OS: Linux
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-02 09:34 UTC by Akshay Mankumbare
Modified: 2021-06-10 11:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 18:05:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Akshay Mankumbare 2016-03-02 09:34:18 UTC
Description of problem:

Just want to create a role in which user should be able to filter content host by organization_id.

role with the following filters is created :

* lifecycle environment: all allowed, no limits
* content host: view_content_hosts, filtered by "organization_id = 1"

login with user to which roles with above filter is assigned and click on content_hosts, the spinning "loading" thing appears and stay there forever.

Below traceback is observed :
~~~~~
2016-02-26 04:51:27 [E] ActiveRecord::StatementInvalid: PGError: ERROR:  missing FROM-clause entry for table "katello_environments"
LINE 1: ...ello_systems.uuid FROM "katello_systems"  WHERE (("katello_e...
                                                             ^
: SELECT katello_systems.uuid FROM "katello_systems"  WHERE (("katello_environments"."organization_id" = '1'))
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `async_exec'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `exec_no_cache'
~~~~~~ 

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


How reproducible:
100%

Steps to Reproduce:
1. Create a role with following filters :
~~~
* lifecycle environment: all allowed, no limits
* content host: view_content_hosts, filtered by "organization_id = 1"
~~~~
2. Create a user.
3. Now assign above created role to a user.
4. Login to Satellite server with user and try to list content hosts

Actual results:

"loading" thing appears and stay there forever.

Below traceback is observed :
~~~~~
2016-02-26 04:51:27 [E] ActiveRecord::StatementInvalid: PGError: ERROR:  missing FROM-clause entry for table "katello_environments"
LINE 1: ...ello_systems.uuid FROM "katello_systems"  WHERE (("katello_e...
                                                             ^
: SELECT katello_systems.uuid FROM "katello_systems"  WHERE (("katello_environments"."organization_id" = '1'))
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `async_exec'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `exec_no_cache'
~~~~~~ 


Expected results:

It should filter content hosts with organization_id = 1

Additional info:

Comment 6 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 7 Bryan Kearney 2016-07-26 15:34:27 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 11 Bryan Kearney 2018-09-04 18:05:32 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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