Bug #9221
closederror fetching environment by name
Description
Performing:
GET /katello/api/v2/organizations/1/environments/?name=Library
results in error:
{
"displayMessage": "PG::UndefinedTable: ERROR: missing FROM-clause entry for table \"katello_environments\"\nLINE 1: ...T \"environments\".\"id\") FROM \"environments\" WHERE \"katello_e...\n ^\n: SELECT DISTINCT COUNT FROM \"environments\" WHERE \"katello_environments\".\"organization_id\" = 1 AND \"katello_environments\".\"name\" = 'Library'",
"errors": [
"PG::UndefinedTable: ERROR: missing FROM-clause entry for table \"katello_environments\"\nLINE 1: ...T \"environments\".\"id\") FROM \"environments\" WHERE \"katello_e...\n ^\n: SELECT DISTINCT COUNT FROM \"environments\" WHERE \"katello_environments\".\"organization_id\" = 1 AND \"katello_environments\".\"name\" = 'Library'"
]
}