MantisBT - CDash
View Issue Details
0014451CDash(No Category)public2013-10-01 11:252013-10-01 11:36
Joe Snyder 
Julien Jomier 
normalminoralways
resolvedfixed 
LinuxUbuntu12.04.03
2.0 
2.2 
0014451: clientjobschedule.php doesn't encode project name before adding to submit URL
When building the URL to submit the results from a scheduled run, a project with spaces in the name will not be encoded. This leads to a "not a valid project" message when using the URL:

Submit files (using http)
   Using HTTP submit method
   Drop site:http://code.osehra.org/CDash/submit.php?project=Open [^] Source EHR&clientscheduleid=26
   Upload file: C:/temp/VistATesting-bin/Testing/20131001-1352/Build.xml to http://code.osehra.org/CDash/submit.php?project=Open [^] Source EHR&clientscheduleid=26&FileName=palaven.kitware___Windows-7-64-Cache-2011.1___20131001-1352-Experimental___XML___Build.xml&MD5=60ddeca5b5270f26be4a0852c147bc60 Size: 1233
   Submission failed: Not a valid project.

which repeats for each file upload attempt.

I don't see this as being platform specific, but I've added the server specification where this instance is being hosted.
Create CDash project that has a space in the name like "Open Source EHR"
Schedule a build using the "Manage Client" page
After testing completion and during submission attempt, error will appear
I've attached a diff for adding a 'urlencode' call on the project name in clientjobschedule.php where the URL is being created. This may not be the best place for it, but it solved the problem for me.
No tags attached.
diff encode-project-name.diff (675) 2013-10-01 11:25
https://public.kitware.com/Bug/file/4893/encode-project-name.diff
Issue History
2013-10-01 11:25Joe SnyderNew Issue
2013-10-01 11:25Joe SnyderFile Added: encode-project-name.diff
2013-10-01 11:34Julien JomierAssigned To => Julien Jomier
2013-10-01 11:34Julien JomierStatusnew => assigned
2013-10-01 11:36Julien JomierNote Added: 0033960
2013-10-01 11:36Julien JomierStatusassigned => resolved
2013-10-01 11:36Julien JomierFixed in Version => 2.2
2013-10-01 11:36Julien JomierResolutionopen => fixed

Notes
(0033960)
Julien Jomier   
2013-10-01 11:36   
Fixed in SVN. Thanks for the report and patch!