-
Notifications
You must be signed in to change notification settings - Fork 17
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
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
user-provided value
| 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
user-provided value
| 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
user-provided value
| 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
user-provided value
| } | ||
|
|
||
| final String successMessage = String.format("Successfully register Plugin %s", pluginName); | ||
| LOGGER.info(successMessage); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
| final Path pluginJarInstallPath = | ||
| Paths.get(getPluginJarFileWithMD5FilePath(pluginName, jarNameWithMD5)); | ||
|
|
||
| if (!Files.exists(pluginInstallPath)) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
| 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
user-provided value
| if (!Files.exists(pluginInstallPath)) { | ||
| FileUtils.forceMkdir(pluginInstallPath.toFile()); | ||
| } | ||
| if (Files.exists(pluginJarInstallPath)) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
|
|
||
| FileUtils.moveFile( | ||
| new File(getPluginJarFilePath(jarName)), | ||
| pluginJarInstallPath.toFile(), |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
| } | ||
|
|
||
| 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.