Project

General

Profile

Actions

Bug #2052

closed

Single quotes in host search causes SQL error

Added by Joseph Magen over 11 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Related to Bug #2045
when searching for hosts "class = 'nis::server'" (note the extra quotes) the host list is NOT filtered, since there is a Postgresql error that is rescued and all records are returned.

PG::Error: ERROR: syntax error at or near "nis"
LINE 1: ...s"."puppetclass_id" WHERE (puppetclasses.name = ''nis::serve...

Actions

Also available in: Atom PDF