Bug #31554
closedGET "/api/v2/permissions" Is failing with 500 Internal Server Error
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1910759
Description of problem:
GET "/api/v2/permissions" Is failing with 500 Internal Server Error only in 6.9 and pass in 6.8
Version-Release number of selected component (if applicable):
Satellite 6.9 snap 6
How reproducible:
always
Steps to Reproduce:
1. Api call to GET "/api/v2/permissions"
2. fails with error
2020-12-24 18:40:59 - nailgun.client - DEBUG - Making HTTP GET request to https://foreman.example.com/api/v2/permissions with options {'data': '{"per_page": 350, "search": "resource_type=\\"Katello::ActivationKey\\""}', 'auth': ('admin', 'changeme'), 'verify': False, 'headers': {'content-type': 'application/json'}}, no params and no data.
2020-12-24 18:41:01 - nailgun.client - WARNING - Received HTTP 500 response: {
"error": {"message":"undefined method `empty?' for 350:Integer"}
}
Actual results:
API call is failed with 500 internal server error
Expected results:
API call should work as expected
Additional info:
attached the error log