[EDP] Wrong validation to run jar job

Bug #1237434 reported by Vadim Rovachev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Alexander Ignatov

Bug Description

To run the jar job for Oozie necessary to specify jar script in the libs but not in the mains.
But can't send an empty field 'mains'.
_________________________________________________________________________________
By example:

POST http://<savanna_host>:<savanna_port>/v1.1/<tenant>/jobs
body:
{
"name": "<job_name>"
"type": "Jar"
"mains":[]
"libs":[<link_to_jar_script>]
}
-------------------------
expected result:
202

actual result:
400
_________________________________________________________________________________
But if create job with body:
{
"name": "<job_name>"
"type": "Jar"
"mains":[<link_to_random_file>]
"libs":[<link_to_jar_script>]
}
then it can start and it has successfully completed

Tags: 0.3
Changed in savanna:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Alexander Ignatov (aignatov)
milestone: none → 0.3
summary: - EDP, Wrong validation to run jar jod.
+ [EDP] Wrong validation to run jar job
tags: added: 0.3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (master)

Fix proposed to branch: master
Review: https://review.openstack.org/51211

Changed in savanna:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (master)

Reviewed: https://review.openstack.org/51211
Committed: http://github.com/openstack/savanna/commit/a7f9fb714c19d7bdb21f0ebfb69db0f432cf3fc8
Submitter: Jenkins
Branch: master

commit a7f9fb714c19d7bdb21f0ebfb69db0f432cf3fc8
Author: Alexander Ignatov <email address hidden>
Date: Fri Oct 11 17:24:03 2013 +0400

    Fixed issue with wrong validation of jobs creation

    * It's possible to send an empty array to mains
    * Added check to create Pig/Hive flows with binary in mains requirement

    Fixes bug#1237434

    Change-Id: Ia04d0fa642386bf5d05300b7013fe91cca6aada2

Changed in savanna:
status: In Progress → Fix Committed
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.