Fixed task not being able to be dropped when the task is stopped & Modify PipeParameters & Supports registration of plugins and reflection usage & Add SQLite support for persistence of plugin and task meta.#57
Conversation
…dify PipeParameters & Supports registration of plugins and reflection usage & Add SQLite support for persistence of plugin and task meta.
| String.format( | ||
| "Failed to register Plugin %s, because the plugin jar file %s is not found", | ||
| pluginName, jarName); | ||
| LOGGER.warn(errorMessage); |
Check failure
Code scanning / CodeQL
Log Injection High
| String.format( | ||
| "Failed to register Plugin %s, because the given Plugin name is the same as a built-in Plugin name.", | ||
| pluginName); | ||
| LOGGER.warn(errorMessage); |
Check failure
Code scanning / CodeQL
Log Injection High
| String.format( | ||
| "Failed to register Plugin %s, because the Plugin has been registered.", | ||
| pluginName); | ||
| LOGGER.warn(errorMessage); |
Check failure
Code scanning / CodeQL
Log Injection High
| final String jarMD5 = | ||
| jarMD5FromDB == null | ||
| ? DigestUtils.md5Hex( | ||
| Files.newInputStream(Paths.get(PluginFileUtils.getPluginJarFilePath(jarName)))) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| } | ||
|
|
||
| final String successMessage = String.format("Successfully register Plugin %s", pluginName); | ||
| LOGGER.info(successMessage); |
Check failure
Code scanning / CodeQL
Log Injection High
| final Path pluginJarInstallPath = | ||
| Paths.get(getPluginJarFileWithMD5FilePath(pluginName, jarNameWithMD5)); | ||
|
|
||
| if (!Files.exists(pluginInstallPath)) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| Paths.get(getPluginJarFileWithMD5FilePath(pluginName, jarNameWithMD5)); | ||
|
|
||
| if (!Files.exists(pluginInstallPath)) { | ||
| FileUtils.forceMkdir(pluginInstallPath.toFile()); |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| if (!Files.exists(pluginInstallPath)) { | ||
| FileUtils.forceMkdir(pluginInstallPath.toFile()); | ||
| } | ||
| if (Files.exists(pluginJarInstallPath)) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
|
|
||
| FileUtils.moveFile( | ||
| new File(getPluginJarFilePath(jarName)), | ||
| pluginJarInstallPath.toFile(), |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
| } | ||
|
|
||
| public static boolean isPluginJarFileExist(final String jarName) { | ||
| return Files.exists(Paths.get(getPluginJarFilePath(jarName))); |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
No description provided.