Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3638

App Fomer maven integration was not honoring the nonProxyHosts property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.12.0.GA
    • 7.10.1.GA
    • Build and Assembly
    • None
    • KIE Server with Proxy enabled and using Business Central embedded maven repository configured with nonProxyHosts.

    • False
    • False
    • ER1
    • +
    • Undefined
    • Hide

      Start KS + BC

      Configured proxy on settings.xml and set the http.proxy java properties.

      Add BC as maven repository on settings.xml and add it on the nonHostsProxy property.

      Show
      Start KS + BC Configured proxy on settings.xml and set the http.proxy java properties. Add BC as maven repository on settings.xml and add it on the nonHostsProxy property.
    • 2021 Week 16-18 (from Apr 19), 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31)

       

      The App former embedded is overriding the proxy setting for the configured repositories forcing proxy to be used, if defined for all configured repositories, even if the nonProxyHosts is set configured to ignore proxy for a specific repository.

      Proxy settings:

          <proxy>
            <id>genproxy</id>
            <active>true</active>
            <protocol>http</protocol>
            <host>192.168.1.104</host>
            <port>3128</port>
            <nonProxyHosts>172.30.*|10.*|192.168.1.13|insecure-myapp-rhdmcentr-test-proxy.*</nonProxyHosts>
          </proxy>
      

       

       

      Logs from KIE Server when resolving/downloading the artifact

       

      [org.eclipse.aether.internal.impl.DefaultTransporterProvider] (DefaultMetadataResolver-0-1) Using transporter HttpTransporter with priority 5.0 for http://172.30.248.146:8080/maven2/14:56:16,409 DEBUG [org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider] (DefaultMetadataResolver-0-1) Using connector BasicRepositoryConnector with priority 0.0 for http://172.30.248.146:8080/maven2/  with username=adminUser, password=*** via 192.168.1.104:3128
      [org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider] (DefaultMetadataResolver-0-0) Using connector BasicRepositoryConnector with priority 0.0 for http://172.30.248.146:8080/maven2/  with username=adminUser, password=***
      

       

       

      Notice that, one request goes through proxy while the other don't.
      Can be checked as well on the proxy access log:

      1619796875.686 2 192.168.1.109 TCP_MISS/200 634 GET http://172.30.248.146:8080/maven2/mortgage-process/mortgage-process/1.0.0-SNAPSHOT/maven-metadata.xml.sha1 - HIER_DIRECT/192.168.1.13 application/octet-stream
      1619796876.483 825 192.168.1.109 TCP_TUNNEL/200 4979 CONNECT repository.jboss.org:443 - HIER_DIRECT/209.132.182.97 -
      1619796876.484 827 192.168.1.109 TCP_TUNNEL/200 3906 CONNECT repository.jboss.org:443 - HIER_DIRECT/209.132.182.97 - 
      

       

       

       

              rhn-support-fspolti Filippe Spolti
              rhn-support-fspolti Filippe Spolti
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: