GetTokenizedUrl fails on parenthesized Graph URL segments

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

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

@waldekmastykarz đang làm issue này rồi.

Từ ngày 31/10/2026.

  • #2043 của @waldekmastykarz — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

work in progress

GraphUtils.GetTokenizedUrl throws on some valid Microsoft Graph URLs with parenthesized segments, for example:

  • /users('id')
  • /reports/getOffice365ActiveUserDetail(period='D7')

Its function-segment regex (^[a-z]+\(.*\)$) doesn't cover all key and function forms. When tokenization fails, the Graph permission plugins (GraphMinimalPermissionsPlugin, GraphMinimalPermissionsGuidancePlugin and GraphMissingPermissionsGuidancePlugin from #2038) skip the request, so no permissions guidance is shown.

Proposal: handle key-as-parentheses and function-with-parameters segments for all consumers, confirm the tokenized format the DevX permissions API expects, and add tests for these URL shapes.

Ngôn ngữ chính
C#
Star
838
Fork
90
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
59

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 dotnet/dev-proxy

Tất cả issue của dotnet/dev-proxy

Issue tương tự

Thêm issue về C#

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.