Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A20F172A1 for ; Tue, 3 Mar 2015 22:07:23 +0000 (UTC) Received: (qmail 9607 invoked by uid 500); 3 Mar 2015 22:07:05 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 9563 invoked by uid 500); 3 Mar 2015 22:07:05 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 9551 invoked by uid 99); 3 Mar 2015 22:07:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 22:07:05 +0000 Date: Tue, 3 Mar 2015 22:07:05 +0000 (UTC) From: "Hudson (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SQOOP-2162) Sqoop2: InputEditable should be optional in JSON API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SQOOP-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345848#comment-14345848 ] Hudson commented on SQOOP-2162: ------------------------------- SUCCESS: Integrated in Sqoop2-hadoop200 #770 (See [https://builds.apache.org/job/Sqoop2-hadoop200/770/]) SQOOP-2162: Sqoop2: InputEditable should be optional in JSON API (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=36663eb399e54dd978987fb8fc0bd422269f3c12) * common/src/main/java/org/apache/sqoop/json/util/ConfigInputSerialization.java * common/src/test/java/org/apache/sqoop/json/util/TestConfigSerialization.java > Sqoop2: InputEditable should be optional in JSON API > ---------------------------------------------------- > > Key: SQOOP-2162 > URL: https://issues.apache.org/jira/browse/SQOOP-2162 > Project: Sqoop > Issue Type: Bug > Components: sqoop2-api > Affects Versions: 1.99.5 > Reporter: Abraham Elmahrek > Assignee: Abraham Elmahrek > Fix For: 1.99.6 > > Attachments: SQOOP-2162.0.patch > > > Currently, it is not optional. The following JSON request will throw an exception: > {code:type=json} > { > "id": -1, > "inputs": [ > { > "id": -1, > "name": "Enum", > "overrides": "", > "sensitive": false, > "type": "ENUM", > "value": "YES", > "values": "YES,NO" > } > ], > "name": "c", > "type": "JOB" > } > {code} > This breaks backwards compatibiltiy of our APIs. This Jira should fix that by providing a default value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)