Skip to content

fix(dim): reject attribute names with colons on deletion - #317

Merged
miesi-ionos merged 2 commits into
masterfrom
bugfix/reject-attr-colon-deletion
Aug 20, 2026
Merged

miesi-ionos merged 2 commits into
masterfrom
bugfix/reject-attr-colon-deletion

Conversation

@eschweikert

Copy link
Copy Markdown
Collaborator
  • Prevent silent failure when a user mistakenly passes a colon-separated key-value pair to 'remove attrs' (e.g. 'remove attrs key:value') by raising an exception in 'WithAttr.delete_attrs'.
  • Add comprehensive unit/integration test coverage in 'dim-testsuite/tests/pool_test.py' to verify that trying to delete an attribute containing a colon raises an Exception.
  • Document this change in 'dim/CHANGES'.
    closes ndcli modify pool <P> rmove attrs a:v does not remove attribute #111

- Prevent silent failure when a user mistakenly passes a colon-separated key-value pair to 'remove attrs' (e.g. 'remove attrs key:value') by raising an exception in 'WithAttr.delete_attrs'.
- Add comprehensive unit/integration test coverage in 'dim-testsuite/tests/pool_test.py' to verify that trying to delete an attribute containing a colon raises an Exception.
- Document this change in 'dim/CHANGES'.

Co-authored-by: Gemini <gemini@local>
@eschweikert
eschweikert requested review from akaramimotlagh and miesi-ionos and removed request for akaramimotlagh August 19, 2026 12:21
@miesi-ionos

Copy link
Copy Markdown
Collaborator

Please add testcases. Please also add a testcase for

$ ndcli list pool de-kae-bs-po-generalqa-fe-int-312-qa_v4 rights
action object group
allocate de-kae-bs-po-generalqa-fe-int-312-qa_v4 CloudServices
attr.audit de-kae-bs-po-generalqa-fe-int-312-qa_v4 CloudServices
attr.audit. de-kae-bs-po-generalqa-fe-int-312-qa_v4 CloudServices

to be able to revoke attr.audit.

…eletion

- Add end-to-end CLI integration test cases in 'dim-testsuite/t/pool-list-rights.t' for pool attr rights trailing-dot revoke and prefix symmetry.
- Add test case in 'dim-testsuite/t/pool-list-rights.t' for the new colon-rejection validation when removing attributes.

Co-authored-by: Gemini <gemini@local>
@miesi-ionos

Copy link
Copy Markdown
Collaborator

The tests are correct. The code changes slipped in somewhere else? Ok, lets go.

@miesi-ionos
miesi-ionos merged commit 4db8c4a into master Aug 20, 2026
2 checks passed
@eschweikert
eschweikert deleted the bugfix/reject-attr-colon-deletion branch September 2, 2026 13:57
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.

ndcli modify pool <P> rmove attrs a:v does not remove attribute

2 participants