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

    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
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: