[CDAP-7727] Loading artifact does not fail when incorrect config-json is specified Created: 01/Dec/16  Updated: 26/May/17  Resolved: 26/May/17

Status: Resolved
Project: CDAP
Component/s: App Fabric
Affects Version/s: None
Fix Version/s: 4.2.0

Type: Bug Priority: Critical
Reporter: Sreevatsan Raman Assignee: Albert Shau
Resolution: Fixed Votes: 0
Labels: None

Release Notes: Fix a bug where extra characters after an artifact version range were being ignored instead of being recognized as invalid.
Rank: 1|hzzpfb:

 Description   

While loading JDBC drivers when the json config is invalid the load artifact command doesn't fail.

Here is an incorrect json config:

{
  "parents": [ "system:cdap-etl-batch[3.5.0,3.6.0],system:cdap-data-pipeline[3.5.0,3.6.0]" ],
  "plugins": [
    {
      "name" : "oracle",
      "type" : "jdbc",
      "className" : "oracle.jdbc.OracleDriver",
      "description" : "Plugin for Oracle12c JDBC driver"
    }
  ]
}

The error is in parents config and the fix is

"parents": [ "system:cdap-etl-batch[3.5.0,3.6.0]","system:cdap-data-pipeline[3.5.0,3.6.0]" ],



 Comments   
Comment by Albert Shau [ 26/May/17 ]

https://github.com/caskdata/cdap/pull/8921

Generated at Mon Oct 22 16:46:59 UTC 2018 using JIRA 7.8.2#78002-sha1:944b71ecbe2e09c23503821098ef280c785b44a8.