I have a Restlet ServerResource method annotated with @Post("multipart"). It
works fine that way. I change only the annotation to @Post("multipart|xml"),
and now I get "Unsupported Media Type - The server is refusing to service the
request because the entity of the request is in a format not supported by the
requested resource for the requested method". Why would *adding* a handled
mediatype stop the previously working mediatype from working?
I have also tried @Post("multipart:html|xml"), because HTML is what the client
is requesting, but this fails with the same error.
I do have a converter for multipart form data in effect, and that is the type
of data I'm submitting via POST.
I turned up global logging to FINEST to try understand how Restlet searches for
the handler for a particular meditype, but apparently that code isn't
instrumented with logging. That in itself I would consider a minor bug.
This is Restlet 2.1.1, GAE edition.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3049012