[
https://issues.apache.org/jira/browse/CXF-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-2697.
------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.2.7)
2.3.2
Patch applied. thanks!
> REST and web methods taking arguments called without argument leads to
> IllegalArgumentException: wrong number of arguments exception
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2697
> URL: https://issues.apache.org/jira/browse/CXF-2697
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime, JAXB Databinding
> Affects Versions: 2.2.5
> Environment: using JAXD Databinding, JAX-WS with REST
> Reporter: Dieter Freismuth
> Assignee: Daniel Kulp
> Fix For: 2.3.2
>
> Attachments: dfreis.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> if an @WebMethod taking an @WebParam argument is called without the argument
> via REST the IllegalArgumentException is thrown.
> WebMethod:
> public String sayHi(@WebParam(name="text") String text,
> @WebParam(name="text2") String text2);
> this works if only one (text or text2) parameter is given within the HTTP GET
> Rest call and the second parameter is missing.
> Does not work if both parameters are missing!
> The Reason can be found within URIMappingInterceptor.keepInOrder method' s
> first line:
> if (params == null || params.size() == 0) {
> return params;
> }
> should be replaced by:
> if (params == null) {
> return params;
> }
> this change will add all required 'null' values for all missing parameters
> given within wsdl.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.