SbloodyS commented on issue #16346:
URL:
https://github.com/apache/dolphinscheduler/issues/16346#issuecomment-2238794726
> 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");
> }
> ```
I've reproduce this error successfully. You got it. Would you like to fix
it? @JohnZp
--
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]