Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B001711EF1 for ; Sun, 29 Jun 2014 17:26:25 +0000 (UTC) Received: (qmail 26312 invoked by uid 500); 29 Jun 2014 17:26:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 26173 invoked by uid 500); 29 Jun 2014 17:26:24 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 25942 invoked by uid 99); 29 Jun 2014 17:26:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Jun 2014 17:26:24 +0000 Date: Sun, 29 Jun 2014 17:26:24 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (JCS-133) RemoteUtils.getNamingURL does not handle IPv6 numeric addresses properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sebb created JCS-133: ------------------------ Summary: RemoteUtils.getNamingURL does not handle IPv6 numeric addresses properly Key: JCS-133 URL: https://issues.apache.org/jira/browse/JCS-133 Project: Commons JCS Issue Type: Bug Reporter: Sebb The RemoteUtils.getNamingURL method does the following concatenation to produce the result: "//" + registryHost + ":" + registryPort + "/" + serviceName; This works fine for host names and IPv4, but does not work for literal IPv6 addresses which have to be enclosed in [ and ] A crude way to fix this would be to look for ":" in the registryHost string. If present, the zone index identifier (%2 or %eth0) needs to be encoded because the % is special. -- This message was sent by Atlassian JIRA (v6.2#6252)