Project

General

Profile

Actions

Bug #10816

closed

API v2 does not return facts

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

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Is duplicate of Foreman - Bug #9793: querying /api/v2/fact_values with a user with view rights doesn't workClosedDaniel Lobato Garcia03/17/2015Actions
Actions #1

Updated by Virgil Chereches almost 9 years ago

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

Actions #2

Updated by Dominic Cleal almost 9 years ago

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

Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Duplicate

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

Actions

Also available in: Atom PDF