You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "wujimin (JIRA)" <ji...@apache.org> on 2018/04/29 17:38:00 UTC

[jira] [Commented] (SCB-78) Request body is always null when using request.getinputstream

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

wujimin commented on SCB-78:
----------------------------

1.when in with servlet, servlet request not support read body more than one times.

if you want to read inputStream, should IMPL one HttpServerFilter, and override 

needCacheRequest to return true.

 

2.i don't know when need to get stream.

we are not servlet program, with RESTful annotations, i don't think we need to get stream.

> Request body is always null when using request.getinputstream
> -------------------------------------------------------------
>
>                 Key: SCB-78
>                 URL: https://issues.apache.org/jira/browse/SCB-78
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: Bo Li
>            Priority: Major
>
> {code} 
>    @RequestMapping(value = "/", method = {RequestMethod.GET})
>     public String something(@PathVariable(value = "appId") String appId, Model model,
>         HttpServletRequest httpRequest) {
>         httpRequest.getInputStream();// always ""
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)