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

Artifacts with digits in the name are not handled correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: App Fabric, Applications
    • Labels:
      None
    • Release Notes:
      Fixed a bug in the CLI command to load an artifact, where the wrong artifact name and version is used if the artifact name ends with a number.
    • Rank:
      1|hzz32n:

      Description

      I have an artifact with:

        <groupId>co.cask.cdap</groupId>
        <artifactId>test1</artifactId>
        <version>1.0-SNAPSHOT</version>
      

      When I deploy this, the artifact name becomes "tes" and the version becomes "1-1.0-SNAPSHOT".

      cdap (http://Andreass-MacBook-Pro-2.local:10000/namespace:default)> load artifact target/test1-1.0-SNAPSHOT.jar
      Successfully added artifact with name 'tes'
      
      cdap (http://Andreass-MacBook-Pro-2.local:10000/namespace:default)> list artifacts 
      +======================================================+
      | name              | version                 | scope  |
      +======================================================+
      | cdap-data-quality | 3.3.0-SNAPSHOT          | SYSTEM |
      | cdap-etl-batch    | 3.3.0-SNAPSHOT          | SYSTEM |
      | cdap-etl-lib      | 3.3.0-SNAPSHOT-batch    | SYSTEM |
      | cdap-etl-lib      | 3.3.0-SNAPSHOT-realtime | SYSTEM |
      | cdap-etl-realtime | 3.3.0-SNAPSHOT          | SYSTEM |
      | tes               | 1-1.0-SNAPSHOT          | USER   |
      +======================================================+
      
      cdap (http://Andreass-MacBook-Pro-2.local:10000/namespace:default)> list artifact versions tes 
      +===============================+
      | name | version        | scope |
      +===============================+
      | tes  | 1-1.0-SNAPSHOT | USER  |
      +===============================+
      
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: