snazy opened a new issue, #618:
URL: https://github.com/apache/polaris/issues/618

   ### Describe the bug
   
   Scenarion:
   * Polaris with Eclipselink
   * Bootstrapped Polaris
   * Starting Polaris
   * Running `./polaris principals list`
   
   Yields a runtime exception, HTTP/401 hides the actual cause:
   
   ```
   INFO  [2025-01-07 09:57:15,226 - 3457  ] [dw-93] [] 
o.a.p.s.d.t.TracingFilter: Started span with parent spanId="ee5c1a62cd73d22d" 
traceId="13a21ffd612cf2718943bb9bb5492daa" parentContext="{}"
   INFO  [2025-01-07 09:57:15,249 - 3480  ] [dw-93 - POST 
/api/catalog/v1/oauth/tokens] [] o.a.p.s.e.IcebergExceptionMapper: Handling 
runtimeException Failed to read principal entity 
   INFO  [2025-01-07 09:57:15,249 - 3480  ] [dw-93 - POST 
/api/catalog/v1/oauth/tokens] [] o.a.p.s.e.IcebergExceptionMapper: Handling 
runtimeException 
   org.apache.iceberg.exceptions.NotAuthorizedException: Failed to read 
principal entity
        at 
org.apache.polaris.service.auth.TestOAuth2ApiService.getPrincipalName(TestOAuth2ApiService.java:107)
        at 
org.apache.polaris.service.auth.TestOAuth2ApiService.getToken(TestOAuth2ApiService.java:63)
        at 
org.apache.polaris.service.catalog.api.IcebergRestOAuth2Api.getToken(IcebergRestOAuth2Api.java:113)
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at 
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:146)
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:189)
        at 
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)
   ...
   ```
   
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to