Bug #7257
all facts returned if host has no facts
Description
Every fact Foreman knows about is returned if host has no facts
Steps to reproduce:
1). Create new host entry in foreman, for example foo
2). Open /api/hosts/foo/facts
(optionally use ?per_page=99999999)
Result:
All facts in Foreman database returned
Expected result:
Empty hash
Tested on 1.5.1
Associated revisions
fixes #7257 - all facts returned if host has no facts
(cherry picked from commit 738a8d23c8e485e51573cebd459cf20f2495d940)
History
#1
Updated by Dominic Cleal over 8 years ago
- Category set to Search
- Legacy Backlogs Release (now unused) deleted (
20)
#2
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.7.4
- Pull request https://github.com/theforeman/foreman/pull/1727 added
- Pull request deleted (
)
#3
Updated by Anonymous over 8 years ago
- Target version changed from 1.7.4 to 1.7.3
#4
Updated by Daniel Lobato Garcia over 8 years ago
- Legacy Backlogs Release (now unused) set to 22
1.6.1 as this is a minor bug. Also it's just an extension for scoped search so its unlikely to break functionality.
#5
Updated by Daniel Lobato Garcia over 8 years ago
- Status changed from Ready For Testing to Closed
- Assignee set to Joseph Magen
fixes #7257 - all facts returned if host has no facts