Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-2020

[EAP7] no_proxy configuration not properly translated to maven settings

    XMLWordPrintable

Details

    • CLOUD Maintenance Sprint 12

    Description

      When configuring EAP7 S2I image no_proxy settings for maven using proxy exclusion using an entire domain like this:

      NO_PROXY=.example1.com,.example2.com

      the assemble script in /usr/local/s2i/bin/assemble translate the configuration in settings.xml like this:

      <proxy>
      ...
      <nonProxyHosts>.example1.com|.example2.com</nonProxyHosts>
      ...
      </proxy>
      

      But the correct translation is:

      <proxy>
      ...
      <nonProxyHosts>*.example1.com|*.example2.com</nonProxyHosts>
      ...
      </proxy>
      

      With the * (star) in front of the domain name.

      The error is at line 47 https://github.com/jboss-openshift/cct_module/blob/1.0/s2i-common/common.sh#L47

      A fix might be:

      noProxy="${noProxy//,/|}"
      noProxy="${noProxy//|./|*.}"
      noProxy="${noProxy/#./*.}"
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-fspolti Filippe Spolti
              rhn-support-rromerom Ruben Romero Montes
              Tomas Remes Tomas Remes
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: