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

Automatic trimming of objects greater than 900 bytes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.27.0
    • Fix Version/s: 7.35.1
    • Component/s: Artifactory, Database
    • Labels:
      None
    • Location:
      External

      Description

      • Problem description: Properties defined as an index are trimmed automatically by Artifactory
      • Impact: Cargo packages are being corrupted for exceeding the 900 character limit, resulting in a corrupted repository index and a poorly functioning Cargo repository
      • Expected behavior:¬†Successful deployment
      • Steps to reproduce: Deploying Cargo.toml with 'crate.dependencies' property exceeding 900 characters
      • Environment details:¬†
      • DB type: MSSQL
      • Environment: On-Prem
      • Relevant Stacktrace:
      2021-11-07 08:09:52,604Z [jfrt ] [INFO ] [7a5442c03b301012] [o.a.s.d.f.d.PropertiesDao:373 ] [http-nio-8081-exec-4] - Trimming property value to 900 characters 'crate.dependencies'
      2021-11-07 08:09:52,621Z [jfrt ] [WARN ] [e17760418b8c255e] [o.j.r.c.u.CargoUtil:198       ]                    [art-exec-3508       ] - Failed to convert cargo dependency {"name":"kytea-tokenizer","com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input in field name at [Source: (String)"{"name":"kytea-tokenizer",""; line: 1, column: 28]    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportInvalidEOF(ParserMinimalBase.java:662)    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._parseName2(ReaderBasedJsonParser.java:1759)    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._parseName(ReaderBasedJsonParser.java:1743)    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextFieldName(ReaderBasedJsonParser.java:941)    at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:331)    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)    at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:322)    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4593)    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3548)    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3516)    at org.jfrog.repomd.cargo.utils.CargoUtil.lambda$convertToDependencies$4(CargoUtil.java:196)    at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)    at org.jfrog.repomd.cargo.utils.CargoUtil.convertToDependencies(CargoUtil.java:194)    at org.jfrog.repomd.cargo.utils.CargoUtil.attributesMapToMetadata(CargoUtil.java:268)    at org.jfrog.repomd.cargo.CargoMetadataIndexer.reindexPackage(CargoMetadataIndexer.java:127)    at org.jfrog.repomd.cargo.CargoMetadataIndexer.addCrate(CargoMetadataIndexer.java:98)    at org.jfrog.repomd.cargo.CargoMetadataIndexer.indexAsSystem(CargoMetadataIndexer.java:48)    at org.jfrog.repomd.cargo.CargoMetadataIndexer.lambda$index$0(CargoMetadataIndexer.java:34)    at org.artifactory.security.SecurityServiceImpl.doAsSystem(SecurityServiceImpl.java:3510)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.base/java.lang.reflect.Method.invoke(Method.java:566)    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)    at com.sun.proxy.$Proxy190.doAsSystem(Unknown Source)    at org.artifactory.addon.common.repomd.v2.ArtifactoryRepoWorkContext.doAsSystem(ArtifactoryRepoWorkContext.java:68)    at org.jfrog.repomd.cargo.CargoMetadataIndexer.index(CargoMetadataIndexer.java:34)    at org.artifactory.addon.cargo.CargoServiceImpl.indexRepoEvents(CargoServiceImpl.java:80)    at org.artifactory.addon.cargo.CargoServiceImpl.calculateMetadata(CargoServiceImpl.java:66)    at org.artifactory.addon.cargo.CargoServiceImpl.calculateCargoMetadataAsync(CargoServiceImpl.java:38)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.base/java.lang.reflect.Method.invoke(Method.java:566)    at org.artifactory.work.queue.WorkQueueImpl.invoke(WorkQueueImpl.java:147)    at org.artifactory.work.queue.WorkQueueImpl.doJobs(WorkQueueImpl.java:117)    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)    at org.artifactory.opentracing.TraceableRunnableDecorator.run(TraceableRunnableDecorator.java:40)    at org.artifactory.concurrent.ArtifactoryRunnable.run(ArtifactoryRunnable.java:53)    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)    at java.base/java.lang.Thread.run(Thread.java:829)

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              fadir Fadi Rouhana
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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