Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 96515 invoked from network); 8 Oct 2007 19:47:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2007 19:47:14 -0000 Received: (qmail 39240 invoked by uid 500); 8 Oct 2007 19:47:01 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 39165 invoked by uid 500); 8 Oct 2007 19:47:01 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 39156 invoked by uid 99); 8 Oct 2007 19:47:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 12:47:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.7.16] (HELO mail.mulesource.com) (63.246.7.16) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 19:47:01 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.mulesource.com (Postfix) with ESMTP id 1EB4E2831083 for ; Mon, 8 Oct 2007 14:46:11 -0500 (CDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -2.599 X-Spam-Level: Received: from mail.mulesource.com ([127.0.0.1]) by localhost (mail.mulesource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cSynBvVDgafx for ; Mon, 8 Oct 2007 14:46:07 -0500 (CDT) Received: from [192.168.1.7] (wyngmiedge01-pool1-a41.wyngmi.tds.net [134.215.195.41]) by mail.mulesource.com (Postfix) with ESMTP id 917BD2830F85 for ; Mon, 8 Oct 2007 14:46:07 -0500 (CDT) Message-ID: <470A88FE.5010207@mulesource.com> Date: Mon, 08 Oct 2007 15:46:06 -0400 From: Dan Diephouse User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Roundtrip IRI escaping Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.599 tagged_above=-10 required=6.6 tests=[AWL=0.001, BAYES_00=-2.599] I have some encoded spaces in my IRIs and I was wondering if the behavior below was expected: IRI iri = new IRI("./bar%20baz"); assertEquals("./bar%20baz", iri.toString()); IRI iri2 = new IRI("http://foo.com").resolve(iri); assertEquals("http://foo.com/foo/bar%20baz", iri.toString()); // This is what I was expecting The actual string on the last one is "http://foo.com/foo/bar baz". Is this expected? It makes using the abdera client a little tricky as I can't just resolve() my href, then pass off the iri2.toString() to the client. Cheers, - Dan -- Dan Diephouse MuleSource http://mulesource.com | http://netzooid.com/blog