Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4626

SSH container can't parse + sign at the beggining of the repository list

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: None
    • Component/s: Fabric8 v1
    • Labels:
      None
    • Environment:

      RC3

      Description

      When using + sign in repository list in

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories='+file:${runtime.data}/maven/upload@snapshots@id=fabric-upload' default
      

      created ssh container

      container-create-ssh --host 172.16.116.21 --user fuse --password fuse --resolver localip nodec
      

      will end up with

      2015-12-04 08:04:31,442 | ERROR | nload-2-thread-2 | AetherBasedResolver              | 15 - io.fabric8.fabric-maven - 1.2.0.redhat-621084 | invalid repository URLs
      java.net.MalformedURLException: no protocol: +file:/home/fuse/containers/nodec/fabric8-karaf-1.2.0.redhat-621084/data/maven/upload/
      	at java.net.URL.<init>(URL.java:585)[:1.7.0_75]
      	at java.net.URL.<init>(URL.java:482)[:1.7.0_75]
      	at java.net.URL.<init>(URL.java:431)[:1.7.0_75]
      	at io.fabric8.maven.util.MavenRepositoryURL.<init>(MavenRepositoryURL.java:190)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.util.MavenConfigurationImpl.getRepositories(MavenConfigurationImpl.java:295)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.selectRepositories(AetherBasedResolver.java:254)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:467)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:457)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:433)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:33)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:40)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_75]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_75]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_75]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_75]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_75]
      

      so the artifact request from repository specified in settings.xml is not satisfied

      2015-12-04 08:04:31,444 | ERROR | 2.0.1-1-thread-1 | DeploymentAgent                  | 72 - io.fabric8.fabric-agent - 1.2.0.redhat-621084 | Unable to update agent
      io.fabric8.common.util.MultiException: Error
      	at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:93)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:329)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:273)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:366)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:199)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_75]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_75]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_75]
      Caused by: java.io.IOException: Error downloading mvn:org.jboss.fuse.qa.test/useless-artifact/1.1
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:49)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_75]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_75]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_75]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_75]
      	... 3 more
      Caused by: java.io.IOException: Error resolving artifact org.jboss.fuse.qa.test:useless-artifact:jar:1.1: Could not find artifact org.jboss.fuse.qa.test:useless-artifact:jar:1.1
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:531)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:472)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:457)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:433)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:33)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:40)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	... 7 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sonicaaaa Paolo Antinori
                  Reporter:
                  emil.cervenan Emil Cervenan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: