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

Fabric Maven Repo ignores proxy.nonProxyHosts setting for newly mvn:deploy'ed artifacts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2
    • jboss-fuse-6.1
    • None
    • None
    • % %
    • Hide

      1. Setup a forward proxy using mod_proxy, ie:

      Listen 172.17.42.1:9001
      
      <IfModule mod_proxy.c>
      
      ProxyRequests On
      ProxyVia On
      
      AllowCONNECT 443
      AllowCONNECT 80
      
      <Proxy *>
          Allow from all
      </Proxy>
      

      2. Create a 3 node fabric ensemble

      3. Add a fabric maven proxy to the 'fabric' profile:

      fabric:profile-edit --pid io.fabric8.maven/proxy.host=172.17.42.1 fabric
      fabric:profile-edit --pid io.fabric8.maven/proxy.port=9001 fabric
      fabric:profile-edit --pid io.fabric8.maven/proxy.protocol=http fabric
      fabric:profile-edit --pid io.fabric8.maven/proxy.nonProxyHosts=172.17.42.1 fabric
      

      4. Upload a file to the Fabric Maven repository, ie:

      mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc6.jar -DgeneratePom=true -Durl=http://admin:admin@localhost:8181/maven/upload
      

      5. On one of the ensemble servers, do a 'fabric:create-profile'

      6. Tail the forward proxy logs and observe that traffic goes through the proxy server

      Show
      1. Setup a forward proxy using mod_proxy, ie: Listen 172.17.42.1:9001 <IfModule mod_proxy.c> ProxyRequests On ProxyVia On AllowCONNECT 443 AllowCONNECT 80 <Proxy *> Allow from all </Proxy> 2. Create a 3 node fabric ensemble 3. Add a fabric maven proxy to the 'fabric' profile: fabric:profile-edit --pid io.fabric8.maven/proxy.host=172.17.42.1 fabric fabric:profile-edit --pid io.fabric8.maven/proxy.port=9001 fabric fabric:profile-edit --pid io.fabric8.maven/proxy.protocol=http fabric fabric:profile-edit --pid io.fabric8.maven/proxy.nonProxyHosts=172.17.42.1 fabric 4. Upload a file to the Fabric Maven repository, ie: mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc6.jar -DgeneratePom= true -Durl=http: //admin:admin@localhost:8181/maven/upload 5. On one of the ensemble servers, do a 'fabric:create-profile' 6. Tail the forward proxy logs and observe that traffic goes through the proxy server

    Description

      When setting a maven proxy on the fabric profile, if you upload a file to the the fabric maven repository at ':8181/maven/upload'. fabric commands then go through the proxy server.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-xiwu Xiaohui Wu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: