baldimir commented on code in PR #3868:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3868#discussion_r2068103323
##########
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:
I think the problem description mentions that a path check should be done if
it is valid. Bincy added such check with the resolveSecure method, so I expect
it should satisfy the problem description.
--
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]