Bug #10816
closedAPI v2 does not return facts
Description
After upgrading to API v2 we have the following problem: the API does not return facts anymore. The v1 API calls are still working, anyway.
Example v2 query:
curl -sk "https://admin:password@foreman/api/fact_values?search=host+%3D+node58.dev+and+fact+%3D+state"
{
"total": 0,
"subtotal": 0,
"page": 1,
"per_page": 100,
"search": "host = node58.dev and fact = state",
"sort": {
"by": null,
"order": null
},
"results": {}
}
Example v1 query:
curl -sk "https://admin:password@foreman/api/fact_values?search=host+%3D+node58.dev+and+fact+%3D+state"
{"node58.dev":{"state":"selected"}}
No error in production log whatsoever.
Please advise
Updated by Virgil Chereches over 9 years ago
Sorry, I was trying to say:
"after upgrading to Foreman 1.7.4"...
Updated by Dominic Cleal over 9 years ago
- Is duplicate of Bug #9793: querying /api/v2/fact_values with a user with view rights doesn't work added
Updated by Dominic Cleal over 9 years ago
- Status changed from New to Duplicate
Thanks for the report, I think this is being tracked under #9793.