abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse (JIRA)" <j...@apache.org>
Subject [jira] Closed: (ABDERA-76) IRI.toString() doesn't properly encode IRIs
Date Tue, 23 Oct 2007 00:54:50 GMT

     [ 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.


Mime
View raw message