error when searching a host by class
The filter was "class = nis::server" leading to this url: https://foreman/hosts?utf8=%E2%9C%93&search=class+%3D+nis%3A%3Aserver
and this error message:
PG::Error: ERROR: invalid input syntax for integer: "nil" LINE 1: SELECT "hosts".* FROM "hosts" WHERE ((hosts.id = 'nil')) OR... ^ : SELECT "hosts".* FROM "hosts" WHERE ((hosts.id = 'nil')) ORDER BY "hosts"."name" ASC NULLS FIRST LIMIT 20 OFFSET 0
when trying "class = 'nis::server'" (note the extra quotes) no error is thrown and the host list is not filtered.
I would have expected the query to return all hosts that have the nis::server class assigned (directly or transitively).
This is foreman 1.1RC1 running on Scientific Linux 6.2 with the packages from yum.theforeman.org