Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Rbac client mangles request query parameters

Đang mở
#369 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, typescript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
7
Fork
37
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RedHatInsights/javascript-clients

Tất cả issue của RedHatInsights/javascript-clients

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.