dalelane commented on code in PR #30192:
URL: https://github.com/apache/flink/pull/30192#discussion_r4740908426


##########
flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/LogFileNamePathParameter.java:
##########
@@ -33,7 +36,10 @@ public LogFileNamePathParameter() {
     }
 
     @Override
-    protected String convertFromString(String value) {
+    protected String convertFromString(String value) throws 
ConversionException {
+        if (!FileNameUtils.isPlainFileName(new File(value).getName())) {
+            throw new ConversionException(String.format("%s must name a file 
(%s)", KEY, value));
+        }

Review Comment:
   moved in 81a082bff6b 
   
   



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