You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Dan Diephouse (JIRA)" <ji...@apache.org> on 2007/10/23 02:54:50 UTC

[jira] Closed: (ABDERA-76) IRI.toString() doesn't properly encode IRIs

     [ https://issues.apache.org/jira/browse/ABDERA-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Diephouse closed ABDERA-76.
-------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 0.4.0)
                       (was: 0.3.0)
                       (was: 0.2.2)

Actually, I just released this is another aspect of ABDERA-72 which I also filed. So I'm marking this as a duplicate.

> IRI.toString() doesn't properly encode IRIs
> -------------------------------------------
>
>                 Key: ABDERA-76
>                 URL: https://issues.apache.org/jira/browse/ABDERA-76
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Dan Diephouse
>
> When you have spaces in an IRI they are not kept encoded when you call toString(). This causes problems in places like FOMEntry.setContent(IRI, String). Example test case:
>   public void testEntryContent() {
>     IRI iri = new IRI("./bar%20baz");
>     
>     assertEquals("./bar%20baz", iri.toString());
>     IRI iri2 = new IRI("http://foo.com").resolve(iri); 
>     
>     Entry entry = getFactory().newEntry();
>     entry.setContent(iri2, "application/xml");
>   }
> It doesn't seem to be triggered unless resolve() is called. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.