[
https://issues.apache.org/jira/browse/CXF-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin updated CXF-3135:
----------------------------------
Fix Version/s: 2.4
2.3.2
Assignee: Sergey Beryozkin
Summary: WadlGenerator does not respect Consumes annotation for form
requests (was: WadlGenerator does not respect Consumes annotation)
Confirmed, thanks for posting the sample output
> WadlGenerator does not respect Consumes annotation for form requests
> --------------------------------------------------------------------
>
> Key: CXF-3135
> URL: https://issues.apache.org/jira/browse/CXF-3135
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.3.0
> Environment: any
> Reporter: Guy Dumais
> Assignee: Sergey Beryozkin
> Priority: Minor
> Fix For: 2.3.2, 2.4
>
>
> {{WadlGenerator}} invokes {{handleRepresentation}} with the wrong parameter
> when creating the {{<request>}} element. The last parameter of
> {{handleRepresentation}} should be _true_ not _false_:
> {code}
> if (ori.getMethodToInvoke().getParameterTypes().length != 0) {
> sb.append("<request>");
> if (isFormRequest(ori)) {
> handleRepresentation(sb, jaxbTypes, qnameResolver, clsMap,
> ori, null, false);
> } else {
> for (Parameter p : ori.getParameters()) {
> handleParameter(sb, jaxbTypes, qnameResolver, clsMap,
> ori, p);
> }
> }
> sb.append("</request>");
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.