You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Tamás Héri (Jira)" <ji...@apache.org> on 2021/09/30 15:46:00 UTC

[jira] [Created] (KAFKA-13337) Scanning for Connect plugins can fail with AccessDeniedException

Tamás Héri created KAFKA-13337:
----------------------------------

             Summary: Scanning for Connect plugins can fail with AccessDeniedException
                 Key: KAFKA-13337
                 URL: https://issues.apache.org/jira/browse/KAFKA-13337
             Project: Kafka
          Issue Type: Bug
          Components: KafkaConnect
    Affects Versions: 2.8.1, 2.6.2, 2.7.1, 3.1.0
            Reporter: Tamás Héri
             Fix For: 3.0.1


During Connect plugin path scan, if an unreadable file/directory is found, Connect will fail with an {{AccessDeniedException}}. As the directories/files can be unreadable, it is best to skip them in this case. See referenced PR.

 
{noformat}
java.nio.file.AccessDeniedException: /tmp/junit8905851398112785578/plugins/.protected
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:432)
	at java.base/java.nio.file.Files.newDirectoryStream(Files.java:604)
	at org.apache.kafka.connect.runtime.isolation.PluginUtils.pluginUrls(PluginUtils.java:276)
	at org.apache.kafka.connect.runtime.isolation.PluginUtilsTest.testPluginUrlsWithProtectedDirectory(PluginUtilsTest.java:481)
...
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)