result value for Form.getFirstValue()

2011-10-03 Thread Arjohn Kampman
Hi all,

I ran into an issue with Form.getFirstValue(String). This method not
only returns null when the form doesn't contain the parameter, but
also when there is a parameter with an empty string. The empty string
is a valid input value in our application, but I can't distinguish
between a missing parameter and an empty one using this method. IMHO,
this method should return the empty string value in the latter case.
What do you think?

Regards,
Arjohn Kampman

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


Re: Log Question

2011-10-03 Thread Paul Morris
The entity size of the request is unknown (-1), thus the -. Not sure
what's happening without seeing everything that you can see but maybe you
could try manually setting the Content-Length header to zero before the
redirect (request.getEntity.setSize(0);) and see what happens. I'm not
saying this is a long-term solution but it might help you narrow things
down.

On 10/2/11 5:12 AM, James jam...@gmail.com wrote:

Hi,

Any idea why the first entry is not redirecting (307 temp redirect),
instead the connection is timing out.

The following two entries are fine.

Notice: 307 0   -   7

What is the -, that is really the only difference I can see? (Besides
the different iOS version)

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

This message and any included attachments are intended only for the addressee. 
The information contained in this message is confidential and may constitute 
proprietary or non-public information under international, federal, or state 
laws. Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail.

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