Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-726

AbstractCvsScmProvider.parseScmUrl for ext transport should expect 4 or 5 tokens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • 1.8.1
    • None
    • maven-scm-provider-cvs
    • None

    Description

      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

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fuss Przemyslaw Fusik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: