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

generated client spec name fails if there is a space or tilde in directory name

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Labels:
      None

      Description

      The default generated client spec name is calculated in generateDefaultClientspecName() as:

      username + "−" + hostname + "−MavenSCM−" + path;

      if path includes a space or tilde, the client spec is not created and the plugin fails to sync.

      Can:

      path = workDir.getCanonicalPath().replace( '/', '\\' )

      be replaced with:

      path = workDir.getCanonicalPath().replace( '/', '\\' ).replaceAll("[ ~]", "-")

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              evenisse Emmanuel Venisse
              Reporter:
              zoosnack zak jacobson

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment