You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/12/06 18:46:11 UTC

[jira] [Commented] (CXF-6679) @Context HttpServletRequest request.getParameterMap() can't contain post parameters by application/x-www-form-urlencoded

    [ https://issues.apache.org/jira/browse/CXF-6679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15043974#comment-15043974 ] 

Sergey Beryozkin commented on CXF-6679:
---------------------------------------

A "cache.http.request.parameters" bus property needs to be set to true to make it work. CXF needs InputStream for the services be available, however HttpServletRequest.getInputStream causes some initial stream block to be pre-read.

Alternatively register a custom filter which will only do HttpServletRequest.getParameterNames

>  @Context HttpServletRequest request.getParameterMap() can't contain post parameters by application/x-www-form-urlencoded
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-6679
>                 URL: https://issues.apache.org/jira/browse/CXF-6679
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.1
>            Reporter: ghs
>         Attachments: CxfPostParameters_.zip
>
>
> 	@POST
> 	@Path("/post")
> 	public String post( @Context HttpServletRequest request ){
> 		Map<String, String[]> reMap = request.getParameterMap();
> 		System.out.println( reMap );
> 		return reMap.toString();
> 	}
> In reMap, there are no post parameters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)