Skip to content

[core] Fix wrong privilege type in NoPrivilegeException for assertCanCreateDatabase - #9015

Merged
JingsongLi merged 1 commit into
apache:masterfrom
cxzl25:fix_create_db_msg
Aug 7, 2026
Merged

[core] Fix wrong privilege type in NoPrivilegeException for assertCanCreateDatabase#9015
JingsongLi merged 1 commit into
apache:masterfrom
cxzl25:fix_create_db_msg

Conversation

@cxzl25

@cxzl25 cxzl25 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Purpose

PrivilegeCheckerImpl#assertCanCreateDatabase checks for PrivilegeType.CREATE_DATABASE, but when the check fails it throws NoPrivilegeException reporting the missing privilege as PrivilegeType.DROP_DATABASE

Tests

@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 645da34 into apache:master Aug 7, 2026
11 of 12 checks passed
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