Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-4800

Loading an artifact with invalid range results in an incorrect error message

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.1
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Fix a bug to correctly error out when an artifact range has the same version as the lower and upper versions, but the lower is inclusive and upper is exclusive.
    • Rank:
      1|hzz5zz:

      Description

      Loading an artifact with an invalid range [3.4.0-SNAPSHOT, 3.4.0-SNAPSHOT) results in an error message that indicates that the parent artifact is not found. While the actual cause is the version range.

      load artifact ./Downloads/sqljdbc4.jar config-file ./Downloads/sqljdbc4.json name sqljdbc version 1.0
      Error: 'system:cdap-etl-batch[3.4.0-SNAPSHOT,3.4.0-SNAPSHOT),system:cdap-etl-realtime[3.4.0-SNAPSHOT,3.4.0-SNAPSHOT)' was not found.
      

      json

      {
        "parents": [
          "system:cdap-etl-batch[3.4.0-SNAPSHOT,3.4.0-SNAPSHOT)",
          "system:cdap-etl-realtime[3.4.0-SNAPSHOT,3.4.0-SNAPSHOT)"
        ],
        "plugins" : [
          {
            "name": "sqlserver",
            "type": "jdbc",
            "description": "Microsoft SQL Server External JDBC Plugin",
            "className": "com.microsoft.sqlserver.jdbc.SQLServerDriver"
          }
        ]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              sree Sreevatsan Raman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: