Skip to content

Use HttpPost for PermissionIntegrationController.IsGrantedAsync#25177

Merged
EngincanV merged 1 commit into
devfrom
fix/permission-integration-use-post
Mar 30, 2026
Merged

Use HttpPost for PermissionIntegrationController.IsGrantedAsync#25177
EngincanV merged 1 commit into
devfrom
fix/permission-integration-use-post

Conversation

@maliming

Copy link
Copy Markdown
Member

The IsGrantedAsync endpoint was using [HttpGet], which requires passing List<IsGrantedRequest> via query string and can easily exceed URL length limits when checking multiple users and permissions.

Changed to [HttpPost] so the payload is sent in the request body.

Closes #25175

Copilot AI review requested due to automatic review settings March 30, 2026 09:07
@maliming maliming added this to the 10.3-preview milestone Mar 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Switches the Permission Management integration permission-check endpoint to use POST so large List<IsGrantedRequest> payloads are sent in the request body instead of the query string (avoiding URL length limits). This aligns the integration API with typical request sizing constraints and the generated client proxy metadata.

Changes:

  • Change PermissionIntegrationController.IsGrantedAsync from [HttpGet] to [HttpPost].
  • Update the generated client proxy description (permissionManagement-generate-proxy.json) to use POST and bind input from the request body.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi/Volo/Abp/PermissionManagement/Integration/PermissionIntegrationController.cs Switch the is-granted endpoint to POST to move payload into request body.
modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi.Client/ClientProxies/permissionManagement-generate-proxy.json Regenerate proxy metadata to use POST and Body binding for input.

@maliming maliming requested a review from EngincanV March 30, 2026 09:12
@EngincanV EngincanV merged commit 0e7cbae into dev Mar 30, 2026
7 checks passed
@EngincanV EngincanV deleted the fix/permission-integration-use-post branch March 30, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

About the integrated service for permission checks

3 participants