Skip to content

[Bug] PluginMgr may produce dirty uninstallation #13540

@dutyu

Description

@dutyu

Search before asking

  • I had searched in the issues and found no similar issues.

Version

1.1.2-rc05

What's Wrong?

When PluginMgr failed to install a dynamic plugin, because PluginMrg has some bugs, it can not catch all kinds of exceptions and will not trigger plugin uninstallation, so when we want to reinstall this plugin, because the plugin file already exists, reinstallation will never be succeed even if the plugin has not any problems.

What You Expected?

Plugin installation should be successfully, or nothing should be left if failed to install.

How to Reproduce?

Build a custom dynamic plugin and throw a runtime exception at Plugin's init method, when you first install the plugin, installation will be failed, when you remove the runtime exception and reinstall the plugin, installation will be failed too.

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions