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

Holly Schinsky commented on CB-7079:
------------------------------------

I did some quick testing with this and it appears to fail because of the {2,} 
criteria in the regex check (/registry/mainfest.js as Eddy mentioned). 

 if (!name.match(/^(\w+\.){2,}.*$/)) {
        throw new Error('Invalid plugin ID. It has to follow the reverse domain 
`com.domain.plugin` format');
    }

If the dash is in the 3rd part of the package name or if you change it to {1,} 
it works ok (because I believe the {2,} is going to look for exactly 2 
occurrences of previously specified criteria-^(\w+\.). Not sure exactly how it 
needs to be fixed for all situations, but wanted to at least add my results 
from testing.

> Plugman Publish does not work for plugins with a dash in its ID
> ---------------------------------------------------------------
>
>                 Key: CB-7079
>                 URL: https://issues.apache.org/jira/browse/CB-7079
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugman
>            Reporter: Eddy Verbruggen
>            Priority: Minor
>
> I was trying to publish my plugins to plugins.cordova.io, unfortunately I 
> can't because there is a dash in my plugin ID: 
> nl.x-services.plugins.socialsharing
> Changing the ID to nl.xservices.plugins.socialsharing works, but as it's 
> quite a popular plugin, I don't want to change the ID. This may be a 
> publishing blocker for other users as well.
> This is the error message when using 'plugman publish <mypath>':
> 'Invalid plugin ID. It has to follow the reverse domain `com.domain.plugin` 
> format'
> Plugman version 0.22.2
> Platform: Mac OS X
> For me to be able to submit my plugin, I require a little tweak to (most 
> likely) the function validateName in src/registry/manifest.js



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

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

Reply via email to