Details

    • Type: Bug
    • Status: In Progress
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.8.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      DistributionCoordinatesResolver not populating tokens when doing redistribute

      repro steps:
      1. deploy deb file to local Debian repo
      2. distribute the file to Bintray
      3. redistribute the file
      you will get the next exception:
      ```
      2018-01-29 16:32:11,655 [art-exec-410] [ERROR] (o.a.b.d.BintrayVersionDistributor:143) - Error distributing dest-local/deb/libbz2-1.0_1.0.6-8.1_amd64.deb -> deb/libbz2-1.0/1.0.6-8.1/libbz2-1.0_1.0.6-8.1_amd64.deb: Could not resolve the value of token '${distribution}' for artifact 'dest-local:deb/libbz2-1.0_1.0.6-8.1_amd64.deb' Artifactory cannot distribute without it.
      java.lang.IllegalArgumentException: Could not resolve the value of token '${distribution}' for artifact 'dest-local:deb/libbz2-1.0_1.0.6-8.1_amd64.deb' Artifactory cannot distribute without it.
      at org.artifactory.bintray.distribution.util.DistributionUtils.lambda$1(DistributionUtils.java:92) ~[artifactory-core-5.8.3.jar:na]
      at java.util.Optional.orElseThrow(Optional.java:290) ~[na:1.8.0_151]
      at org.artifactory.bintray.distribution.util.DistributionUtils.getValueFromToken(DistributionUtils.java:92) ~[artifactory-core-5.8.3.jar:na]
      at org.artifactory.bintray.distribution.BintrayVersionDistributor.distributeDebian(BintrayVersionDistributor.java:191) [artifactory-core-5.8.3.jar:na]
      at org.artifactory.bintray.distribution.BintrayVersionDistributor.pushArtifactToBintrayCoordinates(BintrayVersionDistributor.java:161) [artifactory-core-5.8.3.jar:na]
      at org.artifactory.bintray.distribution.BintrayVersionDistributor.pushArtifacts(BintrayVersionDistributor.java:130) [artifactory-core-5.8.3.jar:na]
      at org.artifactory.bintray.distribution.BintrayVersionDistributor.distributeVersion(BintrayVersionDistributor.java:98) [artifactory-core-5.8.3.jar:na]
      at org.artifactory.bintray.distribution.DistributorImpl.distributeVersion(DistributorImpl.java:112) [artifactory-core-5.8.3.jar:na]
      at org.artifactory.bintray.distribution.DistributorImpl.lambda$1(DistributorImpl.java:99) [artifactory-core-5.8.3.jar:na]
      at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:1.8.0_151]
      at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_151]
      at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1553) ~[na:1.8.0_151]
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_151]
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_151]
      at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:1.8.0_151]
      at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:1.8.0_151]
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_151]
      at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[na:1.8.0_151]
      at org.artifactory.bintray.distribution.DistributorImpl.distributeInternal(DistributorImpl.java:99) [artifactory-core-5.8.3.jar:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      at org.artifactory.schedule.aop.TraceableMethodInvocation.proceed(TraceableMethodInvocation.java:58) ~[artifactory-core-5.8.3.jar:na]
      at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:325) ~[artifactory-core-5.8.3.jar:na]
      at org.artifactory.schedule.aop.AsyncAdvice.lambda$2(AsyncAdvice.java:279) ~[artifactory-core-5.8.3.jar:na]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_151]
      at org.artifactory.concurrent.ArtifactoryRunnable.run(ArtifactoryRunnable.java:30) ~[artifactory-common-5.8.3.jar:na]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_151]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_151]
      at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]
      ```

        Attachments

          Activity

            People

            • Assignee:
              nadavy Nadav Yogev
              Reporter:
              Dudim Dudi Morad
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: