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 #1

Updated by Tomer Brisker over 9 years ago

  • Description updated (diff)
  • Status changed from New to Closed

Could not reproduce. Seems this is fixed by now. Reopen if bug still exists with more precise reproduction method.

Actions #2

Updated by Dominic Cleal over 9 years ago

  • Status changed from Closed to Resolved
Actions

Also available in: Atom PDF