JohnZp commented on issue #16346:
URL: 
https://github.com/apache/dolphinscheduler/issues/16346#issuecomment-2238602507

   > Please provide reproduce steps and deployment environment. I can not 
reproduce this issue locally.
   
   The second bug is a security interception issue, not a problem with the 
dolphinscheduler. I have already removed it.
   The first bug occurred when the wrong method was used to retrieve the file 
name when re uploading the problem code. Maybe it should like this
   ``` java
           if (!Objects.equals(
                   Files.getFileExtension(
                           file.getOriginalFilename() == null ? file.getName() 
: file.getOriginalFilename()),
                   
Files.getFileExtension(updateFileDto.getFileAbsolutePath()))) {
               throw new ServiceException("file extension cannot not change");
           }
   ```


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