WSO2 ESB 4.8.1 ERROR White spaces are required between publicId and systemId

烂漫一生 提交于 2019-11-29 17:08:19

Analyzing response with this error we saw responses with this message:

"Error Code: 502 Proxy Error. The ISA Server denied the specified Uniform Resource Locator (URL).

After debug source code ESB we saw in the 'synapse-nhttp-transport' class there was a bug where, although the file /repository/conf/axis2/axis2.xml values contained in the 'nonProxyHosts', first call is always sent through the proxy.

The proxy itself was the one who cut the traffic and error produced was motivated by the response from it.

To fix has created a patch changing the class leaving it as follows:

public HttpHost selectProxy(final HttpHost target) {
  if (this.proxy != null) {
    if (knownProxyHosts.contains(target.getHostName().toLowerCase(Locale.US))) {
      return this.proxy;
    } else if (knownProxyHosts.contains(target,getHostName().toLowerCase(Locale.US))) {
      return null;
    } else {
      // we are encountering this host for the first time
      if (!isByPass(target.getHostName().toLowerCase(Locale.US))) {
        return this.proxy;
      } else {
        return null;
      }   
    }
  }
  return this.proxy;
}

Additionally, WSO2 has been notified to correct this bug.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!