Bug 1967319
Summary: | The /api/usergroups/:usergroup_id/external_usergroups API is not accepting 1-group as the name of usergroup | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
Component: | Users & Roles | Assignee: | Tomer Brisker <tbrisker> |
Status: | CLOSED ERRATA | QA Contact: | sganar |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.9.0 | CC: | apatel, egolov, mhulan, oezr, pcreech, sganar, tbrisker |
Target Milestone: | 6.11.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-07-05 14:28:57 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sayan Das
2021-06-02 20:59:49 UTC
Created redmine issue https://projects.theforeman.org/issues/32704 from this bug A workaround until this is fixed properly is to use the usergroup ID instead of its name in the api call, e.g. (assuming for example that the usergroups has id 5) `/api/usergroups/5/external_usergroups` or `/api/usergroups/5-043-enterprise systems/external_usergroups` instead of `/api/usergroups/043-enterprise systems/external_usergroups`. The root cause is that one of the functions incorrectly assumes that the number at the start of the usergroup name indicates its ID and tries (and fails) to find a usergroup with that ID. Upstream bug assigned to tbrisker Upstream bug assigned to tbrisker Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32704 has been resolved. 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.11 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-2022:5498 |