Project

General

Profile

Bug #10816

API v2 does not return facts

Added by Virgil Chereches almost 8 years ago. Updated almost 8 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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


Related issues

Is duplicate of Foreman - Bug #9793: querying /api/v2/fact_values with a user with view rights doesn't workClosed2015-03-17

History

#1 Updated by Virgil Chereches almost 8 years ago

Sorry, I was trying to say:
"after upgrading to Foreman 1.7.4"...

#2 Updated by Dominic Cleal almost 8 years ago

  • Is duplicate of Bug #9793: querying /api/v2/fact_values with a user with view rights doesn't work added

#3 Updated by Dominic Cleal almost 8 years ago

  • Status changed from New to Duplicate

Thanks for the report, I think this is being tracked under #9793.

Also available in: Atom PDF