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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment