users@jersey.java.net

[Jersey] 415 Response unless adding @Consumes("application/x-www-form-urlencoded")

From: Reto Gmür <reto_at_gmuer.ch>
Date: Thu, 3 Sep 2015 18:17:54 +0200

Hello,

After updating to jersey 2.21 I'm getting 415 responses when submitting
forms unless I add a @Consumes("application/x-www-form-urlencoded"). I'm
using a method with @FormParam annotations.

According to the spec the absence of a @Consumes-Annotation support for any
media type (“*/*”) is assumed. How comes Jersey is returning a 415 response
without this annotation?

Cheers,
Reto