Hi Alex,
The HTTP spec uses the character to delimit quoted string:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2
This is already supported by Restlet. I've just updated SVN trunk to clarify
the error messages.
I've also added a test case to verify this based on your sample values. See
attached.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
-Message d'origine-
De : ale...@milowski.com [mailto:ale...@milowski.com] De la part de Alex
Milowski
Envoyé : lundi 3 août 2009 23:30
À : discuss@restlet.tigris.org
Objet : Spaces in Media Type Parameters?
I just ran across an issue with media type parameters on the Content-Type
header
that have spaces. I assumed that quoted values would be OK but I get an
exception from Restlet.
My assumption was I could send:
Content-Type: application/docbook+xml; version='my version 1.0'
but the space character inside the quoted parameter value
seems to be disallowed.
This is allowed:
Content-Type: application/docbook+xml; version='my%20version%201.0'
In addition, the system throws an exception and I get a 500 response. I
would
think there would be a more graceful way of handling such an error (e.g 400
Bad request).
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=23797
42
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2384324
ContentTypeTestCase.java
Description: Binary data