Skip to content

fix(dim): fix pool attr right revoke with dots - #316

Merged
eschweikert merged 2 commits into
masterfrom
bugfix/revoke-attr-dot
Aug 19, 2026
Merged

eschweikert merged 2 commits into
masterfrom
bugfix/revoke-attr-dot

Conversation

@eschweikert

Copy link
Copy Markdown
Collaborator
  • Resolve an issue where revoking an 'attr' right with trailing or leading dots (e.g., 'attr.audit.') would fail silently because the DB query searched for 'attr' instead of the full attribute right string.
  • Make 'group_grant_access' and 'group_revoke_access' symmetric and robust by automatically handling both stripped (e.g., 'audit.') and prefixed (e.g., 'attr.audit.') inputs for the 'attr' right type.
  • Add comprehensive integration tests in 'dim-testsuite/tests/rights_test.py' covering all edge cases (with/without dot, prefix robustness, and independence between rights).

eschweikert and others added 2 commits August 19, 2026 14:04
- Resolve an issue where revoking an 'attr' right with trailing or leading dots (e.g., 'attr.audit.') would fail silently because the DB query searched for 'attr' instead of the full attribute right string.
- Make 'group_grant_access' and 'group_revoke_access' symmetric and robust by automatically handling both stripped (e.g., 'audit.') and prefixed (e.g., 'attr.audit.') inputs for the 'attr' right type.
- Add comprehensive integration tests in 'dim-testsuite/tests/rights_test.py' covering all edge cases (with/without dot, prefix robustness, and independence between rights).

Co-authored-by: Gemini <gemini@local>
Co-authored-by: Gemini <gemini@local>
@eschweikert
eschweikert force-pushed the bugfix/revoke-attr-dot branch from 12b35d8 to b692a13 Compare August 19, 2026 12:06

@akaramimotlagh akaramimotlagh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@eschweikert
eschweikert merged commit 8102ee7 into master Aug 19, 2026
2 checks passed
@eschweikert
eschweikert deleted the bugfix/revoke-attr-dot branch August 20, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants