github-code-scanning[bot] commented on code in PR #14063:
URL: https://github.com/apache/druid/pull/14063#discussion_r1162547304


##########
indexing-service/src/main/java/org/apache/druid/indexing/common/config/TaskConfig.java:
##########
@@ -202,17 +190,30 @@
     return baseDir;
   }
 
-  @Deprecated
-  @JsonProperty("baseTaskDir")
-  public String getBaseTaskDirPath()
+  @JsonProperty
+  public File getBaseTaskDir()
   {
-    return baseTaskDirPath;
+    return baseTaskDir;
   }
 
-  @JsonProperty
-  public List<String> getBaseTaskDirPaths()
+  public File getTaskDir(String taskId)
   {
-    return baseTaskDirPaths;
+    return new File(baseTaskDir, IdUtils.validateId("task ID", taskId));

Review Comment:
   ## Uncontrolled data used in path expression
   
   This path depends on a [user-provided value](1).
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/31)



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


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

Reply via email to