gitgabrio commented on code in PR #3868:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3868#discussion_r2015944982
##########
addons/common/persistence/filesystem/src/main/java/org/kie/kogito/persistence/filesystem/FileSystemProcessInstances.java:
##########
@@ -69,7 +69,7 @@ public FileSystemProcessInstances(Process<?> process, Path
storage, ProcessInsta
public Optional findById(String id, ProcessInstanceReadMode mode) {
Path processInstanceStorage = Paths.get(storage.toString(), id);
- if (Files.notExists(processInstanceStorage)) {
+ if (!processInstanceStorage.toFile().exists()) {
Review Comment:
This would lead to `File.exists()` execution, and then to
> 'exists' method of 'java.io.File' object could be abused to disclose or
manipulate sensitive files:
--
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]