[Issue 3568] New - Not support spaces on the job name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Issue 3568] New - Not support spaces on the job name

yop19
https://hudson.dev.java.net/issues/show_bug.cgi?id=3568
                 Issue #|3568
                 Summary|Not support spaces on the job name
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|ftppublisher
             Assigned to|puss_in_boots
             Reported by|yop19






------- Additional comments from [hidden email] Fri Apr 24 14:09:47 +0000 2009 -------
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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]