Actions
Bug #187
closedReserved chars in facts
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
Updated by Ohad Levy over 14 years ago
- Category set to 19
- Assignee set to Ohad Levy
- Target version set to 0.1-5
Updated by Ohad Levy over 14 years ago
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset 5539907cfad4c2c87577284facb70caf73ca47a8.
Updated by Dis Connect over 14 years ago
Looks good with my testcase:
irb(main):003:0> gethosts({"fact"=>{"ps"=>"ps -ef"}}).length
=> 183
Hopefully nobody uses separator anywhere tho :)
Updated by Ohad Levy over 14 years ago
- Status changed from Ready For Testing to Closed
Actions