Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20818

System import and REST “Add Build” fails if the Build info properties has [] values in them

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.16.0
    • Fix Version/s: None
    • Labels:
      None
    • Regression:
      Yes

      Description

      When we upgrade the artifactory instance from the versions below 6.6 version to higher, the build migration fails if the build info.json file has properties with [] in it.

      The stack trace would be the following:

      Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token

      at [Source: (org.jfrog.storage.binstore.common.ReaderTrackingInputStream); line: 3, column: 17] (through reference chain: org.jfrog.build.api.Build["properties"]->java.util.Properties["testing"])

       

      EDIT: this is not a regression, the fix only helped with a in-place upgrade, not with REST API build adds or with full system imports. Altering the bug to fix those cases.

       

       

        Attachments

        1. build_info_migration.log
          34 kB
        2. build.json
          0.3 kB
        3. qual.json
          13 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              manojt Manoj Tuguru
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: