mirror of
https://github.com/keycloak/keycloak.git
synced 2026-02-18 18:37:54 -05:00
Fix duplicate client-uuid path parameter in OpenAPI spec
Some checks are pending
Weblate Sync / Trigger Weblate to pull the latest changes (push) Waiting to run
Some checks are pending
Weblate Sync / Trigger Weblate to pull the latest changes (push) Waiting to run
Rename {client-uuid} to {targetClientUuid} in RoleContainerResource to
avoid duplicate parameter names when the resource is mounted under
ClientResource. {clientUuid} is not sufficient because code generators
normalise {client-uuid} from the parent path to clientUuid as well.
Closes #46015
Signed-off-by: Zorian Motso <zorianmotso@gmail.com>
This commit is contained in:
parent
418700b4f8
commit
8258fceb33
1 changed files with 2 additions and 2 deletions
|
|
@ -424,7 +424,7 @@ public class RoleContainerResource extends RoleResource {
|
|||
* @param clientUuid
|
||||
* @return
|
||||
*/
|
||||
@Path("{role-name}/composites/clients/{client-uuid}")
|
||||
@Path("{role-name}/composites/clients/{targetClientUuid}")
|
||||
@GET
|
||||
@NoCache
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
|
@ -436,7 +436,7 @@ public class RoleContainerResource extends RoleResource {
|
|||
@APIResponse(responseCode = "404", description = "Not Found")
|
||||
})
|
||||
public Stream<RoleRepresentation> getClientRoleComposites(final @Parameter(description = "role's name (not id!)") @PathParam("role-name") String roleName,
|
||||
final @PathParam("client-uuid") String clientUuid) {
|
||||
final @PathParam("targetClientUuid") String clientUuid) {
|
||||
auth.roles().requireView(roleContainer);
|
||||
RoleModel role = roleContainer.getRole(roleName);
|
||||
if (role == null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue