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

[EAP7] no_proxy configuration not properly translated to maven settings

    Details

      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/#./*.}"
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  filippe.spolti Filippe Spolti
                  Reporter:
                  rromerom Ruben Romero Montes
                  Tester:
                  Tomas Remes
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: