users@jersey.java.net

[Jersey] Re: POST parameters not injected via MultivaluedMap

From: djafari <djafaricom_at_gmail.com>
Date: Tue, 15 Nov 2011 11:27:16 -0800 (PST)

I believe the bug is located in FormDispatchProvider around line 120:

boolean hasFormParam = false;
        for (int i = 0; i < method.getParameters().size(); i++) {
            Parameter parameter = method.getParameters().get(i);
            if (parameter.getAnnotation() != null)
                hasFormParam |= parameter.getAnnotation().annotationType()
== FormParam.class;
        }

When decided whether to return the list of form Injectables, only the
FormParam annotation is checked. Form/MultivaluedMap are only checked by the
returned Injectable instances.

--
View this message in context: http://jersey.576304.n2.nabble.com/POST-parameters-not-injected-via-MultivaluedMap-tp6434341p6997602.html
Sent from the Jersey mailing list archive at Nabble.com.