You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "hdygxsj (via GitHub)" <gi...@apache.org> on 2025/08/07 13:24:21 UTC

[I] [Bug report] NPE when create table failed by not auth [gravitino]

hdygxsj opened a new issue, #7972:
URL: https://github.com/apache/gravitino/issues/7972

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   NPE when create table failed by not auth
   
   ### Error message and/or stacktrace
   
   ```
   2025-08-07 10:13:17.936 INFO [Gravitino-webserver-149] [org.casbin.jcasbin.util.Util.logEnforce(Util.java:117)] - Hit Policy: []
   2025-08-07 10:13:17.937 WARN [Gravitino-webserver-149] [org.apache.gravitino.server.web.filter.GravitinoInterceptionService$MetadataAuthorizationMethodInterceptor.invoke(GravitinoInterceptionService.java:140)] - Authorization failed - User: Tom, Operation: createFileset, Metadata: null, Expression: ANY(OWNER, METALAKE, CATALOG) || SCHEMA_OWNER_WITH_USE_CATALOG || ANY_USE_CATALOG && ANY_USE_SCHEMA && ANY_CREATE_FILESET
   2025-08-07 10:13:17.937 ERROR [Gravitino-webserver-149] [org.apache.gravitino.server.web.filter.GravitinoInterceptionService$MetadataAuthorizationMethodInterceptor.invoke(GravitinoInterceptionService.java:155)] - System internal error during authorization - User: Tom, Operation: createFileset
   java.lang.NullPointerException: Cannot invoke "org.apache.gravitino.NameIdentifier.name()" because "accessMetadataName" is null
   	at org.apache.gravitino.server.web.filter.GravitinoInterceptionService$MetadataAuthorizationMethodInterceptor.buildNoAuthResponse(GravitinoInterceptionService.java:181) ~[gravitino-server-1.0.0-SNAPSHOT.jar:?]
   	at org.apache.gravitino.server.web.filter.GravitinoInterceptionService$MetadataAuthorizationMethodInterceptor.invoke(GravitinoInterceptionService.java:147) ~[gravitino-server-1.0.0-SNAPSHOT.jar:?]
   	at org.jvnet.hk2.internal.MethodInterceptorHandler.invoke(MethodInterceptorHandler.java:97) ~[hk2-locator-2.6.1.jar:?]
   	at org.apache.gravitino.server.web.rest.FilesetOperations_$$_jvstfdf_5.createFileset(FilesetOperations_$$_jvstfdf_5.java) ~[gravitino-server-1.0.0-SNAPSHOT.jar:?]
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
   
   ```
   
   ### How to reproduce
   
   create table when no auth
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] NPE when create table failed by not auth [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi closed issue #7972: [Bug report] NPE when create table failed by not auth
URL: https://github.com/apache/gravitino/issues/7972


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org