f16f65741e
This commit fixes an issue with the plugins directory being a symbolic link. Namely, the install plugins command attempts to always create the plugins directory just in case it does not exist. The JDK method used here guarantees that the directory is created, and an exception is not thrown if the directory could not be created because it already exists. The problem is that this JDK method does not respect symlinks so its internal existence checks fails, it proceeds to attempt to create the directory, but the directory creation fails because the symlink exists. This is documented as being not an issue. We work around this by checking if there is a symlink where we expect the plugins directory to be, and only attempt to create if not. We add a unit test that plugin installation to a symlinked plugins directory works as expected. |
||
---|---|---|
.. | ||
backwards-5.0 | ||
evil-tests | ||
smoke-test-client | ||
smoke-test-ingest-disabled | ||
smoke-test-ingest-with-all-dependencies | ||
smoke-test-multinode | ||
smoke-test-plugins | ||
smoke-test-reindex-with-groovy | ||
vagrant |