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

Nikita Matrosov resolved CB-12409.
----------------------------------
    Resolution: Fixed

> Plugman is unable to uninstall a plugin with a config preferences containing 
> '*'
> --------------------------------------------------------------------------------
>
>                 Key: CB-12409
>                 URL: https://issues.apache.org/jira/browse/CB-12409
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugman
>    Affects Versions: 1.4.1
>         Environment: OS: MacOS
> $ plugman -version => 1.4.1
> $ cordova -version => 6.5.0
>            Reporter: Kris Vandermast
>            Assignee: Nikita Matrosov
>            Priority: Minor
>
> A Cordova plugin we wrote uses a "group filter" which is injected into the 
> iOS app's plist file. The group filter can contain a "*" value, which is 
> default in the Plugin.xml 
> {code:title=Plugin.xml|borderStyle=solid}
> <platform name="ios">
>         <config-file target="config.xml" parent="/*">
>              ...
>         </config-file>  
>         <preference name="GROUP_FILTERS" default="*" />
>         <config-file target="*-Info.plist" parent="ConfigKey">
>            <dict>
>               <key>GroupFilters</key>
>               <string>$GROUP_FILTERS</string>
>             </dict>
>         </config-file>
> {code}
> The installation behaves as expected, and the group filter can actually be 
> found in the plist file.
> {code}
> $ plugman install --platform ios --project ./platforms/ios/ --plugin <plugin> 
> --variable GROUP_FILTERS="*" 
> Installing "<plugin>" for ios
> {code}
> It is only when you try to uninstall the plugin, that an error occurs.
> {code}
> $ uninstall --platform ios --plugin <plugin> --project ./platforms/ios/
> Uninstalling <plugin> from ios
> Invalid regular expression: /^*$/: Nothing to repeat
> {code}
> Work-around: manually delete all the references from the Cordova project and 
> reinstall the plugin.
> Escaping the variable when passing it as parameter seems to work.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to