Project

General

Profile

Actions

Bug #187

closed

Reserved chars in facts

Added by Dis Connect over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Spaces break the query interface (fixed with Ohad's patch, below) but dash is still reserved:
gethosts({"fact"=>{"productname"=>"Not Specified"}})
- returns a host count
gethosts({"fact"=>{"ps"=>"ps -ef"}})
- returns a 500 error, generates a url like "http://puppet:3000/hosts/query?fact[]=ps-ps%20-ef&&format=yml"

Even with fixed regex there is still no way to query for fact "foo-bar", esp if there is also a fact "foo".


Files

882601.diff 882601.diff 448 Bytes Patch to foreman.rb query library - Fix spaces in fact values Dis Connect, 03/23/2010 01:50 PM
Actions

Also available in: Atom PDF