This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c24be082dd [fix](fe) Resolve the issue of failed internal schema 
table creation (#34868)
2c24be082dd is described below

commit 2c24be082dd852c6418dbf8f812dd712a38dc762
Author: plat1ko <[email protected]>
AuthorDate: Wed May 15 09:53:44 2024 +0800

    [fix](fe) Resolve the issue of failed internal schema table creation 
(#34868)
---
 .../src/main/java/org/apache/doris/datasource/InternalCatalog.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
index e3b3595c3b7..2dc88d6df59 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
@@ -2418,7 +2418,7 @@ public class InternalCatalog implements 
CatalogIf<Database> {
             }
 
             // Check if user has storage vault usage privilege
-            if (!env.getAuth()
+            if (ctx != null && !env.getAuth()
                     .checkStorageVaultPriv(ctx.getCurrentUserIdentity(), 
storageVaultName, PrivPredicate.USAGE)) {
                 throw new DdlException("USAGE denied to user '" + 
ConnectContext.get().getQualifiedUser()
                         + "'@'" + ConnectContext.get().getRemoteIP()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to