Project

General

Profile

Bug #9221

error fetching environment by name

Added by Justin Sherrill about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Associated revisions

Revision 4e15e0ef (diff)
Added by Justin Sherrill about 8 years ago

fixes #9221 - fix scoped search call for environment

Revision b49c3640
Added by Justin Sherrill about 8 years ago

Merge pull request #4977 from jlsherrill/9221

fixes #9221 - fix scoped search call for environment

History

#1 Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/4977 added
  • Pull request deleted ()

#2 Updated by Justin Sherrill about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Justin Sherrill about 8 years ago

  • Bugzilla link set to 1190025

#4 Updated by Eric Helms about 8 years ago

  • Legacy Backlogs Release (now unused) set to 23

Also available in: Atom PDF