Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3568

Not support spaces on the job name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ftppublisher-plugin
    • None
    • Platform: All, OS: Windows XP

      Hi,

      My job name has a space in this name ("Project Name"), so when I publish by FTP
      I have a null pointer exception.

      URI workSpaceDir = build.getProject().getWorkspace().toURI();
      workSpaceDir = workSpaceDir.resolve(build.getProject().getName());

      Connecting to myserver

      FATAL: null
      java.lang.IllegalArgumentException
      at java.net.URI.create(Unknown Source)
      at java.net.URI.resolve(Unknown Source)
      at com.zanox.hudson.plugins.FTPPublisher.perform(FTPPublisher.java:131)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.jav
      a:56) at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java
      :372) at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java
      :360)Caused by: java.net.URISyntaxException: Illegal character in path at index
      7: Project Name
      at java.net.URI$Parser.fail(Unknown Source)

            benjaminjaton benjaminjaton
            yop19 yop19
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: