Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 99369 invoked from network); 12 Nov 2007 19:25:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 19:25:26 -0000 Received: (qmail 17953 invoked by uid 500); 12 Nov 2007 19:25:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17676 invoked by uid 500); 12 Nov 2007 19:25:12 -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 17667 invoked by uid 99); 12 Nov 2007 19:25:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 11:25:12 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 19:25:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D119714035 for ; Mon, 12 Nov 2007 11:24:50 -0800 (PST) Message-ID: <25716873.1194895490613.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 11:24:50 -0800 (PST) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Closed: (VALIDATOR-218) UrlValidator fail when path contains "(" / ")" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/VALIDATOR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Yandell closed VALIDATOR-218. ----------------------------------- > UrlValidator fail when path contains "(" / ")" > ---------------------------------------------- > > Key: VALIDATOR-218 > URL: https://issues.apache.org/jira/browse/VALIDATOR-218 > Project: Commons Validator > Issue Type: Bug > Components: Routines > Affects Versions: 1.3.1 Release > Environment: JDK 1.5, Linux > Reporter: Stephen Chu > Assignee: Niall Pemberton > Fix For: 1.4 > > > for validating the URL "http://somewhere.com/pathxyz/file(1).html", it returns false. > According to the RFC, > uric = reserved | unreserved | escaped > reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | > "$" | "," > unreserved = alphanum | mark > mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | > "(" | ")" > "(", ")" belongs to mark and is a valid part of uric. > Test case: > UrlValidator validator = new UrlValidator({"http","https"}, UrlValidator.ALLOW_2_SLASHES); > validator.isValid("http://somewhere.com/pathxyz/file(1).html"); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.