You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2015/08/26 11:53:45 UTC

[jira] [Updated] (CB-9556) Plugin install/uninstall does not do proper ref count

     [ https://issues.apache.org/jira/browse/CB-9556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Kotikov updated CB-9556:
---------------------------------
    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


  was:
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)



> Plugin install/uninstall does not do proper ref count
> -----------------------------------------------------
>
>                 Key: CB-9556
>                 URL: https://issues.apache.org/jira/browse/CB-9556
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Vladimir Kotikov
>            Assignee: Vladimir Kotikov
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org