Prevent job names containing slashes (/)
Reported by Tom Molin | April 17th, 2012 @ 07:31 AM | in Rundeck 1.4.3 (closed)
- Issue Type: Bug
- Rundeck version: 1.4.1
Issue:
Cannot create jobs with Job References containing forward slashes (/). The jobs containing slashes can be run directly from the web interface.
Reproduce: (Enter steps to reproduce bug here.)
1) Create a job named "Package /mnt/multimedia/binary to
/mnt/imports in EC Prod"
2) Create a different job named "* Transfer MySQL and Media files
from EC Production to Stage" and add job 1) as a Job Reference
3) Try to execute job 1) and verify it can be run directly from the
web inteface
4) Execute job 2) from Web interface gives the following
output:
No Unique Job found for name: imports in EC Prod, group: Package /mnt/multimedia/binary to /mnt, project: SVT_Escenic_interim
02:59:22 finishInterpretCommand(localhost): rundeck-jobref: null
SEVERE 02:59:22 Failed dispatching to node localhost: Job ref [Package /mnt/multimedia/binary to /mnt/imports in EC Prod] invalid: No Unique Job found for name: imports in EC Prod, group: Package /mnt/multimedia/binary to /mnt, project: SVT_Escenic_interim
02:59:22 [workflow] Finish step: 1,rundeck-jobref
02:59:22 [workflow] Finish execution: rundeck-workflow-node-first: [Workflow , failures: {localhost=[Failed dispatching to node localhost: Job ref [Package /mnt/multimedia/binary to /mnt/imports in EC Prod] invalid: No Unique Job found for name: imports in EC Prod, group: Package /mnt/multimedia/binary to /mnt, project: SVT_Escenic_interim, Step 1 of the workflow threw an exception: Failed dispatching to node localhost: Job ref [Package /mnt/multimedia/binary to /mnt/imports in EC Prod] invalid: No Unique Job found for name: imports in EC Prod, group: Package /mnt/multimedia/binary to /mnt, project: SVT_Escenic_interim]}]
SEVERE 02:59:22 [Workflow , failures: {localhost=[Failed dispatching to node localhost: Job ref [Package /mnt/multimedia/binary to /mnt/imports in EC Prod] invalid: No Unique Job found for name: imports in EC Prod, group: Package /mnt/multimedia/binary to /mnt, project: SVT_Escenic_interim, Step 1 of the workflow threw an exception: Failed dispatching to node localhost: Job ref [Package /mnt/multimedia/binary to /mnt/imports in EC Prod] invalid: No Unique Job found for name: imports in EC Prod, group: Package /mnt/multimedia/binary to /mnt, project: SVT_Escenic_interim]}]
Comments and changes to this ticket
-
Greg Schueler April 17th, 2012 @ 12:01 PM
- Tag set to bug, jobs, validation
slashes are not allowed in job names
The job creation should prevent creating jobs with slashes in the name.
-
Tom Molin April 17th, 2012 @ 11:30 PM
If it's not allowed I guess we should check for slashes in the create Job dialouge?
-
Greg Schueler April 26th, 2012 @ 04:48 PM
- Assigned user cleared.
- Milestone set to Rundeck 1.4.3
- Milestone order changed from 126 to 0
-
Greg Schueler May 1st, 2012 @ 04:06 PM
- Title changed from Cannot create jobs with Job References containing forward slashes (/) to Prevent job names containing slashes (/)
- Assigned user set to Greg Schueler
-
Greg Schueler May 1st, 2012 @ 04:07 PM
- State changed from new to open
Updated issue title.
Job creation/update should apply a constraint so that the job name doesn't contain slash characters, since it is reserved as the group path separator.
-
Greg Schueler May 1st, 2012 @ 04:08 PM
- State changed from open to needs_verification
(from [1eb09ecb248ff4f72593a132d53c2110d4d8afc2]) Add jobName constraint preventing slash char
[#558 state:needs_verification] https://github.com/dtolabs/rundeck/commit/1eb09ecb248ff4f72593a132d...
-
Greg Schueler May 2nd, 2012 @ 12:40 PM
(from [2a813b91446bf7566fa669443da58155f7c45a6c]) Fix api test scripts broken by [#558] https://github.com/dtolabs/rundeck/commit/2a813b91446bf7566fa669443...
-
Greg Schueler May 16th, 2012 @ 06:35 PM
- State changed from needs_verification to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues