Project

General

Profile

Actions

Bug #9221

closed

error fetching environment by name

Added by Justin Sherrill almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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'"
]
}

Actions

Also available in: Atom PDF