-
Bug
-
Resolution: Done
-
Blocker
-
None
-
False
-
-
False
-
Unset
-
None
-
-
When I call get_export_status() for an export with an expected response of 403, the response is missing the 'sources' sub-fields 'error' and 'message'. For example, this is the response:
{'completed_at': datetime.datetime(2024, 9, 24, 18, 26, 56, 645920, tzinfo=tzutc()), 'created_at': datetime.datetime(2024, 9, 24, 18, 26, 56, 471638, tzinfo=tzutc()), 'expires_at': datetime.datetime(2024, 10, 1, 18, 26, 56, 471625, tzinfo=tzutc()), 'format': 'json', 'id': 'd030c61f-c410-4552-80b1-2888517e5aa8', 'name': '5197692b-a9ec-4179-b8a5-711a4dc07d90', 'sources': [{'application': 'urn:redhat:application:inventory', 'filters': {}, 'id': 'c1251d4f-03d0-458d-9d37-ca84330da3f5', 'resource': 'urn:redhat:application:inventory:export:systems', 'status': 'failed'}], 'status': 'failed'}
If I make the request using Postman for example, the response is:
{ "id": "d030c61f-c410-4552-80b1-2888517e5aa8", "created_at": "2024-09-24T18:26:56.471638Z", "completed_at": "2024-09-24T18:26:56.64592Z", "expires_at": "2024-10-01T18:26:56.471625Z", "name": "5197692b-a9ec-4179-b8a5-711a4dc07d90", "format": "json", "status": "failed", "sources": [ { "id": "c1251d4f-03d0-458d-9d37-ca84330da3f5", "application": "urn:redhat:application:inventory", "status": "failed", "resource": "urn:redhat:application:inventory:export:systems", "filters": {}, "message": "You don't have the permission to access the requested resource.", "error": 403 } ] }
Note the error and message fields in the latter response.
- links to
- mentioned on