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

ASF GitHub Bot commented on SCM-726:
------------------------------------

jira-importer opened a new issue, #934:
URL: https://github.com/apache/maven-scm/issues/934

   **[Przemyslaw 
Fusik](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=fuss)** 
opened 
**[SCM-726](https://issues.apache.org/jira/browse/SCM-726?redirect=false)** and 
commented
   
   According to http://maven.apache.org/scm/cvs.html ext transport url may 
contain 4 or 5 (including port) tokens (excluding the first two tokens 'scm' 
and 'cvs' that are consumed before)```
   
scm:cvs<delimiter>ext<delimiter>[username@]servername[<delimiter>port]<delimiter>path_to_repository<delimiter>module_name
   ``` but the code inside AbstractCvsScmProvider.parseScmUrl ```java if ( 
tokens.length != 4 && transport.equalsIgnoreCase( TRANSPORT_EXT ) )
   {
   result.getMessages().add( "The connection string contains too few tokens." );
   
           return result;
       }```
   
   requires 4 tokens and adds misleading message.
   
   
   ---
   
   **Affects:** 1.8.1
   




> AbstractCvsScmProvider.parseScmUrl for ext transport should expect 4 or 5 
> tokens
> --------------------------------------------------------------------------------
>
>                 Key: SCM-726
>                 URL: https://issues.apache.org/jira/browse/SCM-726
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-cvs
>    Affects Versions: 1.8.1
>            Reporter: Przemyslaw Fusik
>            Priority: Minor
>
> According to http://maven.apache.org/scm/cvs.html ext transport url may 
> contain 4 or 5 (including port) tokens (excluding the first two tokens 'scm' 
> and 'cvs' that are consumed 
> before){noformat}scm:cvs<delimiter>ext<delimiter>[username@]servername[<delimiter>port]<delimiter>path_to_repository<delimiter>module_name{noformat}
>  but the code inside AbstractCvsScmProvider.parseScmUrl {code:java}if ( 
> tokens.length != 4 && transport.equalsIgnoreCase( TRANSPORT_EXT ) )
>             {
>                 result.getMessages().add( "The connection string contains too 
> few tokens." );
>                 return result;
>             }{code} requires 4 tokens and adds misleading message.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to