Return-Path: Delivered-To: apmail-abdera-dev-archive@www.apache.org Received: (qmail 57301 invoked from network); 24 Feb 2009 02:12:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 02:12:34 -0000 Received: (qmail 17173 invoked by uid 500); 24 Feb 2009 02:12:34 -0000 Delivered-To: apmail-abdera-dev-archive@abdera.apache.org Received: (qmail 17150 invoked by uid 500); 24 Feb 2009 02:12:34 -0000 Mailing-List: contact dev-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@abdera.apache.org Delivered-To: mailing list dev@abdera.apache.org Received: (qmail 17139 invoked by uid 500); 24 Feb 2009 02:12:33 -0000 Delivered-To: apmail-incubator-abdera-dev@incubator.apache.org Received: (qmail 17136 invoked by uid 99); 24 Feb 2009 02:12:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 18:12:33 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 02:12:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 12800234C48D for ; Mon, 23 Feb 2009 18:12:02 -0800 (PST) Message-ID: <2135272866.1235441522074.JavaMail.jira@brutus> Date: Mon, 23 Feb 2009 18:12:02 -0800 (PST) From: =?utf-8?Q?Niklas_Lindstr=C3=B6m_=28JIRA=29?= To: abdera-dev@incubator.apache.org Subject: [jira] Created: (ABDERA-218) IRI.toString() doesn't preserve empty fragment identifiers and queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org IRI.toString() doesn't preserve empty fragment identifiers and queries ---------------------------------------------------------------------- Key: ABDERA-218 URL: https://issues.apache.org/jira/browse/ABDERA-218 Project: Abdera Issue Type: Bug Affects Versions: 0.4.0 Reporter: Niklas Lindstr=C3=B6m Calling toString() on IRI objects doesn't preserve empty fragment identifie= rs and queries. According to RFC 3987 (from 3986), they should. The following two examples fail: IRI iri =3D new IRI("http://example.org/foo#"); assertEquals(iri.toString(), "http://example.org/foo#"); iri =3D new IRI("http://example.org/foo?"); assertEquals(iri.toString(), "http://example.org/foo?"); Also note the bullet in at RFC 4287, 4.2.6 which says "Preserve empty fragment identifiers and quer= ies.". (This should be fixed by changing the relevant bits in IRI.buildSchemeSpeci= ficPart to: if (query !=3D null)) { ... if (fragment !=3D null)) { ... .) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.