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

Artifactory will fail to deploy buildinfo which include "[ ]" in property value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.13.1, 6.17.0
    • Fix Version/s: None
    • Labels:
      None
    • Regression:
      Yes

      Description

      Artifactory should allow deploying a buildInfo which include "[ ]" in modules value,

      Steps to reproduce:

      -> Spin up the latest version of Artifactory
      -> Deploy build info file which has "[ ]" in it.

      Error in artifactory.log:

      2020-01-29 14:13:25,059 [http-nio-8081-exec-8] [ERROR] (o.a.r.c.e.m.GlobalExceptionMapper:48) - com.fasterxml.jackson.databind.JsonMappingException: java.util.LinkedHashMap cannot be cast to java.lang.String (through reference chain: org.jfrog.build.api.Build["modules"]>java.util.ArrayList[0]>org.jfrog.build.api.Module["properties"]->java.util.Properties["vault.embeddedfiles.map"])
      org.jfrog.common.JsonParsingException: com.fasterxml.jackson.databind.JsonMappingException: java.util.LinkedHashMap cannot be cast to java.lang.String (through reference chain: org.jfrog.build.api.Build["modules"]>java.util.ArrayList[0]>org.jfrog.build.api.Module["properties"]->java.util.Properties["vault.embeddedfiles.map"])
      at org.jfrog.common.MapperUtilsBase.unchecked(MapperUtilsBase.java:238)
      at org.jfrog.common.MapperUtilsBase.valueToString(MapperUtilsBase.java:54)
      at org.jfrog.common.JsonUtils.valueToString(JsonUtils.java:27)
      at org.artifactory.build.BuildServiceUtils.getBuildAsJsonString(BuildServiceUtils.java:241)
      at org.artifactory.build.BuildServiceImpl.deployBuildJson(BuildServiceImpl.java:347)
      at org.artifactory.build.BuildServiceImpl.addBuild(BuildServiceImpl.java:325)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
      at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:76)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
      at com.sun.proxy.$Proxy193.addBuild(Unknown Source)
      at org.artifactory.rest.resource.ci.BuildResource.addBuild(BuildResource.java:289)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              pavang Pavan Gonugunta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: