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

MDS doesn't support package with property value bigger than 255

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: None
    • Severity:
      Medium

      Description

      Artifactory supports property value of 4000 but MDS supports only 255:

      2019-06-06 14:53:09,927 [ERROR] (common_handler.go:109 ) - Error patching package with id: (npm://addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-linter-addons-linter-11.9.4): pq: value too long for type character varying(255)
      Internal error while processing request,
      Stacktrace: pq: value too long for type character varying(255)
      jfrog.com/metadata-api/db/daos.Create
      /src/jfrog.com/metadata-api/db/daos/common_dao.go:395
      jfrog.com/metadata-api/db/daos/packages.(*packagesDao).Create
      /src/jfrog.com/metadata-api/db/daos/packages/packages_dao.go:63
      jfrog.com/metadata-api/db/storage/packages.(*packageStorageService).Create
      /src/jfrog.com/metadata-api/db/storage/packages/package_storage.go:108
      jfrog.com/metadata-api/services.(*packageService).Create
      /src/jfrog.com/metadata-api/services/packages_service.go:130
      jfrog.com/metadata-api/services.(*packageService).Upsert
      /src/jfrog.com/metadata-api/services/packages_service.go:86
      jfrog.com/metadata-api/rest/handlers.(*packageHandler).CreateOrUpdatePackage.func1
      /src/jfrog.com/metadata-api/rest/handlers/packages_handler.go:173
      jfrog.com/metadata-api/rest/handlers.toRetry
      /src/jfrog.com/metadata-api/rest/handlers/common_handler.go:92
      jfrog.com/metadata-api/rest/handlers.executeInTransactionWithRetry.func1
      /src/jfrog.com/metadata-api/rest/handlers/common_handler.go:58
      github.com/cenkalti/backoff.RetryNotify
      /pkg/mod/github.com/cenkalti/backoff@v2.1.1+incompatible/retry.go:37
      github.com/cenkalti/backoff.Retry
      /pkg/mod/github.com/cenkalti/backoff@v2.1.1+incompatible/retry.go:24
      jfrog.com/metadata-api/rest/handlers.executeInTransactionWithRetry
      /src/jfrog.com/metadata-api/rest/handlers/common_handler.go:57
      jfrog.com/metadata-api/rest/handlers.ExecuteInTransactionWithRetryAndSetResponse
      /src/jfrog.com/metadata-api/rest/handlers/common_handler.go:34
      jfrog.com/metadata-api/rest/handlers.(*packageHandler).CreateOrUpdatePackage
      /src/jfrog.com/metadata-api/rest/handlers/packages_handler.go:172
      jfrog.com/metadata-api/rest/router.castFullContext.func1
      /src/jfrog.com/metadata-api/rest/router/routes.go:82
      github.com/gin-gonic/gin.(*Context).Next
      /pkg/mod/github.com/gin-gonic/gin@v1.3.0/context.go:108
      jfrog.com/metadata-api/services.(*routerLoggerService).UnexpectedPanicRecovery
      /src/jfrog.com/metadata-api/services/router_logger.go:61
      github.com/gin-gonic/gin.(*Context).Next
      /pkg/mod/github.com/gin-gonic/gin@v1.3.0/context.go:108
      jfrog.com/metadata-api/services.(*routerLoggerService).HandleGinLogs.func1
      /src/jfrog.com/metadata-api/services/router_logger.go:86
      github.com/gin-gonic/gin.(*Context).Next
      /pkg/mod/github.com/gin-gonic/gin@v1.3.0/context.go:108
      github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
      /pkg/mod/github.com/gin-gonic/gin@v1.3.0/gin.go:361
      github.com/gin-gonic/gin.(*Engine).ServeHTTP
      /pkg/mod/github.com/gin-gonic/gin@v1.3.0/gin.go:326
      net/http.serverHandler.ServeHTTP
      /src/net/http/server.go:2774
      net/http.(*conn).serve
      /src/net/http/server.go:1878
      runtime.goexit
      /src/runtime/asm_amd64.s:1337

        Attachments

          Activity

              People

              Assignee:
              uriahl Uriah Levy
              Reporter:
              Mariav Maria Pogozelits
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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