Hi Arjohn,

Thanks, I was able to reproduce and fix this issue in both 2.0 and 2.1. See
attached the updated test case used.

Good timing as new 2.0/2.1 releases are planned for today :)

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel



-----Message d'origine-----
De : Arjohn Kampman [mailto:[email protected]] 
Envoyé : mardi 4 octobre 2011 21:43
À : [email protected]
Objet : RE: result value for Form.getFirstValue()

Hi Jerome,

Your unit test runs fine with 2.0.9 also, but I'm able to reproduce it using
the following test:

public void testQueryString() throws IOException {
    String query = "a=b&c=";
    Form form = new FormReader(query, CharacterSet.UTF_8, '&').read();
    assertEquals("b", form.getFirstValue("a"));
    assertEquals("", form.getFirstValue("c"));
    assertNull(form.getFirstValue("d"));
}

Hope this helps,

Arjohn

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=28499
89

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2850149

Attachment: FormTestCase.java
Description: Binary data

Reply via email to