Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. If target is IPV6 ip then it throw "Does not contain a valid host:port authority: ".

      This need be support.

      public static InetSocketAddress createSocketAddr(String target,
      int defaultPort,
      String configName,
      boolean useCacheIfPresent) {
      String helpText = "";
      if (configName != null)

      { helpText = " (configuration property '" + configName + "')"; }

      if (target == null)

      { throw new IllegalArgumentException("Target address cannot be null." + helpText); }

      target = target.trim();
      boolean hasScheme = target.contains("://");
      URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);

      String host = uri.getHost();
      int port = uri.getPort();
      if (port == -1)

      { port = defaultPort; }

      String path = uri.getPath();

      if ((host == null) || (port < 0) ||
      (!hasScheme && path != null && !path.isEmpty()))

      { throw new IllegalArgumentException( *"Does not contain a valid host:port authority: " + target + helpText* ); }

      return createSocketAddrForHost(host, port);
      }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            prasad-acit Renukaprasad C Assign to me
            gb.ananda@gmail.com ANANDA G B
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 3h 50m
              3h 50m

              Slack

                Issue deployment