[EDP] Validation for binary job name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Medium
|
Trevor McKay |
Bug Description
Precondition steps:
created input file in swift
created input and output data sourses
Step 1.
for UI:
Job binaries -> Create job binary
name (By example): exa!m ple
For rest api:
POST v1.1/<tenant-
{
"name": "exa!m ple",
"url": <link_to_
}
Actual result:
for UI:
object is created
for rest api:
response 202
Expected result:
for UI:
error message
for rest api:
response 400
Step 2.
Create job with job binary from step 1.
Launch job.
result:
!!!Expected job object is created!!!
AND
2013-10-07 15:24:20.099 5823 ERROR savanna.utils.api [-] Request aborted with status code 500 and message 'Internal Server Error'
2013-10-07 15:24:20.100 5823 ERROR savanna.utils.api [-] Traceback (most recent call last):
File "/home/
return func(**kwargs)
File "/home/
return func(*args, **kwargs)
File "/home/
return func(*args, **kwargs)
File "/home/
configs)
File "/home/
return manager.
File "/home/
upload_
File "/home/
h.put_
File "/home/
hdfs_user)
File "/home/
'%s %s" %s' % (source, target, hdfs_user))
File "/home/
raise_
File "/home/
return self._run(func, *args, **kwargs)
File "/home/
return procutils.
File "/home/
raise SubprocessExcep
SubprocessExcep
Return code: 255
STDERR:
moveFromLocal: `e': specified destination directory does not exist
127.0.0.1 - - [07/Oct/2013 15:24:20] "POST /v1.1/4c18f28bf
summary: |
- validation for binary job name + Validation for binary job name |
Changed in savanna: | |
milestone: | none → 0.3 |
importance: | Undecided → Medium |
status: | New → Triaged |
summary: |
- Validation for binary job name + [EDP] Validation for binary job name |
Changed in savanna: | |
assignee: | nobody → Trevor McKay (tmckay) |
Changed in savanna: | |
status: | Triaged → In Progress |
Changed in savanna: | |
milestone: | 0.3 → 0.3-rc3 |
Changed in savanna: | |
status: | Fix Committed → Fix Released |
Changed in savanna: | |
milestone: | 0.3-rc3 → 0.3 |
Reviewed: https:/ /review. openstack. org/51047 github. com/openstack/ savanna/ commit/ 1cb47b68db0c118 d335e2556398b15 df967da942
Committed: http://
Submitter: Jenkins
Branch: master
commit 1cb47b68db0c118 d335e2556398b15 df967da942
Author: Trevor McKay <email address hidden>
Date: Fri Oct 11 16:00:16 2013 -0400
Add validations for name fields in all EDP objects
Change-Id: I14d8ff1e75ab9b 3298d2737dc681e ade5854c096
Closes-Bug: #1236421