Skip to content

Non-existent plugins are successfully uninstalled #7722

@mattstein

Description

@mattstein

Description

If one uses the plugin/uninstall command and provides the handle of a non-existent plugin, Craft pushes the boundaries of reality by successfully uninstalling it.

❯ php craft plugin/uninstall lol-there-is-no-plugin-with-this-handle
*** uninstalling lol-there-is-no-plugin-with-this-handle
*** uninstalled lol-there-is-no-plugin-with-this-handle successfully (time: 0.003s)

The expected behavior would be that only an installed plugin may be uninstalled, in the same way that one can only remove an item from the refrigerator if it is there in the first place.

Steps to reproduce

  1. Pick a funny plugin handle for a plugin that doesn’t exist.
  2. Run php craft plugin/uninstall [your-handle] and observe that it is uninstalled.

Additional info

  • Craft version: 3.6.11.1
  • PHP version: 7.4.14, 7.4.16
  • Database driver & version: Postgres 12, but let’s not dwell on that

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugseverity:minorCosmetic issues or bugs with simple workarounds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions