Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9556

Plugin install/uninstall does not do proper ref count

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-lib
    • None

    Description

      If the plugin B is installed by cordova plugin add command after it was already installed as a dependency to another plugin A it is sill marked as dependency and will be removed after uninstallation of A.

      Repro steps:

      • Install plugin A with dependency on plugin B
        This installs plugin A and plugin B
      • Install plugin B — because the user wants to use it
        Installation does nothing because plugin B is already installed
      • Uninstall plugin A
        This removes both plugin A and plugin B

      Expected:
      The plugin B remains installed

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            vladimir.kotikov Vladimir Kotikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: