Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1079

MINA fails to connect from behind a proxy if endpoint is not resolved

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: None
    • Component/s: Handler
    • Labels:
      None
    • Flags:
      Patch

      Description

      MINA fails to connect from behind a proxy if endpoint address is not resolved. This happens for both HTTP and SOCKS proxy and it seems that the reason for this are typos in HttpProxyRequest and SocksProxyRequest. The following changes seem to fix the issue:

      HttpProxyRequest line 105: replace if (!endpointAddress.isUnresolved()) { with if (endpointAddress.isUnresolved()) {

      SocksProxyRequest line 162: replace if (adr != null && !adr.isUnresolved()) { with if (adr != null && adr.isUnresolved()) {

      Note the negation is gone in both cases

        Attachments

        1. DIRMINA-1079.patch
          2 kB
          Anton Novikov

          Activity

            People

            • Assignee:
              johnnyv Jonathan Valliere
              Reporter:
              anton.novikov Anton Novikov
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: