cms icon indicating copy to clipboard operation
cms copied to clipboard

Non-existent plugins are successfully uninstalled

Open mattstein opened this issue 4 years ago • 0 comments

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

mattstein avatar Mar 24 '21 22:03 mattstein