Repository navigation
Fix Extension Management permission validation - #12381
PooyaKharamesh wants to merge 5 commits into
Conversation
Backport the corrected permission-set checks and regression tests, including the namespace and test compilation repairs from Bug 651703. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the Extension Installation Impl permission error text expected by the regression test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The |
|
This backport targets |
Good Sense Reviewer - Round 1Recommendation: Reject ChangesWhat this PR doesThis change replaces a broad table-read permission check with explicit checks for SUPER or the Exten. Mgt. - Admin permission set. It also adds positive and negative regression tests, including the company-scoped assignment case. The permission check is targeted and matches the tenant-wide nature of extension management. However, the new test subscriber does not follow the compiler rule for subscribers in test codeunits, so the test app cannot build. Problem-solution fitFit: Strong The code directly addresses the missing authorization boundary and covers the main allowed and denied cases. The implementation cannot be accepted in its current delivery branch and build state. SuggestionsS1 (🔴 High): Bind the test subscriber manually Risk assessment and necessityRisk: Extension installation and removal are tenant-wide administrative operations. A wrong permission decision could allow unauthorized changes or block valid administrators; the current compile failure also prevents validating the regression tests. Necessity: The authorization hardening is needed, but this backport targets the unsupported
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Good Sense Reviewer - Round 2Recommendation: Reject ChangesWhat this PR doesThis change replaces a broad application-object read-permission check with explicit tenant-wide checks for The previous compiler blocker is resolved by the code changes, and no new issue is attributable to the round-2 commits. The live build did not reach compilation because workflow initialization failed while downloading a dependency, so it provides no code result for this head. The PR-specific discussion explicitly identifies this exact target branch, Status of previous suggestions
New observations (commits since round 1)None - the changes address the previous suggestion and adjust the test subscriber lifecycle. Risk assessment and necessityRisk: The authorization check protects tenant-wide extension installation, removal, deployment, and related data-deletion operations. The round-2 commits only repair the test harness; no new code defect was found, but compilation was not independently completed for this head because the workflow stopped during initialization. Necessity: Explicit permission validation is needed because application-object read access is not extension-management authority. The PR-specific discussion explicitly identifies this exact target branch,
|
|
Closing this PR because its target branch is unsupported and will not be merged here. The authorization-hardening change and any remaining review/build follow-up will be fixed in separate PRs targeting supported branches. |
1 similar comment
|
Closing this PR because its target branch is unsupported and will not be merged here. The authorization-hardening change and any remaining review/build follow-up will be fixed in separate PRs targeting supported branches. |
Pull request was closed
Fixes missing permission validation in Extension Management.
Related to AB#648158