Rbac client mangles request query parameters
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
- Tech stack
- javascript, typescript
- 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RedHatInsights/javascript-clients
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
RedHatInsights/javascript-clients#372 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
RedHatInsights/javascript-clients#370 ·
Maintainers usually reply within 2 days
-
axios security issueOpen
Difficulty 3/5 1-2 days Newbie friendliness 45/100
RedHatInsights/javascript-clients#225 ·
Maintainers usually reply within 2 days
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
RedHatInsights/javascript-clients#166 · 3 comments ·
Maintainers usually reply within 2 days
All issues in RedHatInsights/javascript-clients
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
external-issue to-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
diegosouzapw/OmniRoute#15401 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
code-yeongyu/oh-my-openagent#9454 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
smart-village-solutions/sva-studio#1654 ·
Maintainers usually reply within 1 day