Bug 1910759 - GET "/api/v2/permissions" Is failing with 500 Internal Server Error Fails only in 6.9
Summary: GET "/api/v2/permissions" Is failing with 500 Internal Server Error Fails onl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.9.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: 6.9.0
Assignee: Ondřej Ezr
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-24 13:18 UTC by Omkar Khatavkar
Modified: 2021-04-21 13:25 UTC (History)
3 users (show)

Fixed In Version: foreman-2.3.1.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:25:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31554 0 Normal Closed GET "/api/v2/permissions" Is failing with 500 Internal Server Error Fails only in 6.9 2021-01-11 08:45:13 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:25:18 UTC

Description Omkar Khatavkar 2020-12-24 13:18:03 UTC
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://satellie.redhat.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

Comment 2 Ondřej Ezr 2020-12-27 23:36:47 UTC
Created redmine issue https://projects.theforeman.org/issues/31554 from this bug

Comment 3 Bryan Kearney 2020-12-28 15:09:31 UTC
Upstream bug assigned to oezr

Comment 4 Bryan Kearney 2020-12-28 15:09:33 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31554 has been resolved.

Comment 6 Peter Ondrejka 2021-01-08 12:05:08 UTC
Verified on 6.9 snap 9

Comment 9 errata-xmlrpc 2021-04-21 13:25:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313


Note You need to log in before you can comment on or make changes to this bug.