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
             Fix For: 0.4.0, 0.3.0, 0.2.2


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.

Reply via email to