Skip to content

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

Open
cxzl25 wants to merge 1 commit into
apache:masterfrom
cxzl25:fix_create_db_msg
Open

[core] Fix wrong privilege type in NoPrivilegeException for assertCanCreateDatabase#9015
cxzl25 wants to merge 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

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.

1 participant