mchades commented on code in PR #7215:
URL: https://github.com/apache/gravitino/pull/7215#discussion_r2105731417


##########
catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/HadoopCatalogOperations.java:
##########
@@ -237,6 +242,48 @@ public Fileset loadFileset(NameIdentifier ident) throws 
NoSuchFilesetException {
         });
   }
 
+  @Override
+  public FileInfo[] listFiles(NameIdentifier ident, String locationName, 
String subPath)
+      throws NoSuchFilesetException, IOException {
+    if (disableFSOps) {
+      LOG.warn("Filesystem operations disabled, rejecting listFiles for {}", 
ident);
+      throw new UnsupportedOperationException("Filesystem operations are 
disabled on this server");
+    }
+
+    String decodedSubPath = subPath;
+    if (StringUtils.isNotBlank(subPath)) {
+      decodedSubPath = URLDecoder.decode(subPath, 
StandardCharsets.UTF_8.name());

Review Comment:
   could you plz move this decode operation to `filesetOperations.class` of the 
server module?



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