Bug #7257

all facts returned if host has no facts

Added by Ivan Gusev over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Joseph Magen
Category:Search
Target version:Sprint 29
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/1727
Story points-
Velocity based estimate-
Release1.6.1Release relationshipAuto

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

Revision 738a8d23
Added by Joseph Magen over 3 years ago

fixes #7257 - all facts returned if host has no facts

Revision e2d33e8e
Added by Joseph Magen over 3 years ago

fixes #7257 - all facts returned if host has no facts

(cherry picked from commit 738a8d23c8e485e51573cebd459cf20f2495d940)

History

#1 Updated by Dominic Cleal over 3 years ago

  • Category set to Search
  • Release deleted (1.5.3)

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Target version set to Sprint 28
  • Pull request https://github.com/theforeman/foreman/pull/1727 added

#3 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 28 to Sprint 29

#4 Updated by Daniel Lobato Garcia over 3 years ago

  • Release set to 1.6.1

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 3 years ago

  • Status changed from Ready For Testing to Closed
  • Assigned To set to Joseph Magen

Also available in: Atom PDF