Error when searching through facts

I’m using Foreman 1.19 with Puppet Server 5 both on the same host. Today I noticed that I get an error in the Foreman web GUI when I try to search through facts for the foreman server.

Oops, we’re sorry but something went wrong** No route matches {:action=>“index”, :controller=>“fact_values”, :host_id=>“termserv.localdomain”, :parent_fact=>“networking::interfaces::PCIe Slot 1 Port 3”}, possible unmatched constraints: [:parent_fact]**

I ran into this with Satellite 6.4. The facts that broke for me were Hash
facts where the key contains “/” (slash) that is likely breaking Rails
routing. This was with mountpoints and partitions facts.

  • Trey

@Trey_Dockendorf In my case it is breaking just because of having space in fact value “PCIe Slot 1 Port 3”. Any possible way to resolve this as we cant remove space from our value.

From reading the issue, I don’t think there’s an easy workaround. It may be better to refer to fact IDs rather than the names in URLs but that change needs to be made in Foreman itself.