oscerd commented on code in PR #28214:
URL: https://github.com/apache/camel/pull/28214#discussion_r4386824660
##########
components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/AbstractSftpConsumer.java:
##########
@@ -41,8 +45,18 @@ public abstract class AbstractSftpConsumer extends
RemoteFileConsumer<SftpRemote
private static final Logger LOG =
LoggerFactory.getLogger(AbstractSftpConsumer.class);
+ /**
+ * The most symbolic links followed to resolve a path, as a longer chain
is most likely a loop
+ */
+ private static final int MAX_SYMBOLIC_LINKS = 32;
+
protected String endpointPath;
+ // the starting directory with its symbolic links resolved on the server,
computed once per poll
+ private volatile String resolvedStartingDirectory;
+
+ private final Set<String> unresolvableLinks =
ConcurrentHashMap.newKeySet();
Review Comment:
Cleared `unresolvableLinks` at the start of `pollDirectory` and in
`doStop()`.
--
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]