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

   ### Version
   
   main branch (source inspected at 73f2ddd913e1d2fe756b3ebb7baec8d8cad29c55)
   
   ### Describe what's wrong
   
   The Java GVFS client only accepts `simple`, `oauth2`, and `kerberos`. 
Setting `fs.gravitino.client.authType=basic` throws an exception before sending 
a request.
   
   The Java SDK and Python GVFS already support Basic authentication. This gap 
prevents Java GVFS from connecting to a Gravitino server configured with the 
built-in local user store and Basic authentication.
   
   Expected behavior: Java GVFS supports `basic` with a username and password, 
consistent with the Java SDK and Python GVFS.
   
   ### Error message and/or stacktrace
   
   ```text
   IllegalArgumentException: Unsupported authentication type: basic for 
fs.gravitino.client.authType.
   ```
   
   ### How to reproduce
   
   The following call reaches the unsupported-authentication branch in the 
current source:
   
   ```java
   Configuration conf = new Configuration();
   conf.set("fs.gravitino.server.uri", "http://localhost:8090";);
   conf.set("fs.gravitino.client.metalake", "test_metalake");
   conf.set("fs.gravitino.client.authType", "basic");
   GravitinoVirtualFileSystemUtils.createClient(conf);
   ```
   
   ### Additional context
   
   - [Java GVFS authentication 
selection](https://github.com/apache/gravitino/blob/73f2ddd913e1d2fe756b3ebb7baec8d8cad29c55/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystemUtils.java#L130-L226)
   - Basic authentication was added in #11226; the existing Java SDK 
`withBasicAuth(username, password)` can be reused.
   


-- 
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