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

Metadata Migration will fail when artifact's multi-valued property is larger then 4000 characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.19.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      High
    • Release Notes:
      Yes

      Description

      When upgrading Artifactory from version 6.x to 7.x, the Metadata Migration process will fail if there is an artifact with a  multi-value property and its total number of characters is above 4000

       

      Steps to reproduce:

      1. Install Artifactory 6.x with postgres 9.6.
      2. Upload a package.
      3. Create a property set, and populate it with values that exceed 4000 characters in total.
      4. Upgrade to Artifactory 7.X

      Error message in the log

      pq: value too long for type character varying(4000) Internal error while processing request, Stacktrace: pq: value too long for type character varying(4000)
      

      A possible workaround will be to remove or trim the property so the number of total characters will not exceed 4000 on version 6.x then perform the upgrade.

        Attachments

          Activity

              People

              Assignee:
              aviva Aviv Anidjar (Inactive)
              Reporter:
              adim Adi Malca
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-25227 -
                  SYNCHRONIZED
                  • Last Sync Date: