You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/06/03 00:39:04 UTC

[jira] [Commented] (CB-12409) Plugman is unable to uninstall a plugin with a config preferences containing '*'

    [ https://issues.apache.org/jira/browse/CB-12409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035701#comment-16035701 ] 

ASF subversion and git services commented on CB-12409:
------------------------------------------------------

Commit 64c1d61f4b6b68151ced1630b20fe0831c1c3c3c in cordova-lib's branch refs/heads/master from [~Nikita Matrosov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=64c1d61 ]

CB-12250 CB-12409 iOS: Fix bug with escaping properties from plist file

 This closes #533


> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org