Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Rbac client mangles request query parameters

Open
#369 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
api

Research direction

Start by reproducing the request in the linked StackBlitz example using APIFactory and getPrincipalAccess. Inspect how APIFactory serializes the supplied parameters and compare the network query with the expected flat application and limit parameters. Done means the request no longer prefixes those parameters with application.

Written by the indexing model from the issue text.

Description

Example: https://stackblitz.com/edit/vitejs-vite-mygi8omd?file=src%2Fmain.ts

Fillowing code creates a request with invalid query parameters.

import { APIFactory } from '@redhat-cloud-services/javascript-clients-shared';
import getPrincipalAccess from '@redhat-cloud-services/rbac-client/GetPrincipalAccess';

const rbacApi = APIFactory("/", {
  getPrincipalAccess
})

rbacApi.getPrincipalAccess({
  application: 'foo',
  limit: 123
})

If you check the network tab these params are created:

?application.application=foo&application.limit=123

But correct parameters should be:

?application=foo&limit=123
Dominant language
TypeScript
Stars
7
Forks
37
Avg merge
2d 6h
Merged PRs (30d)
39

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RedHatInsights/javascript-clients

All issues in RedHatInsights/javascript-clients

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.