[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=16477091#comment-16477091 ] wujimin commented on SCB-78: [https://huawei-servicecomb.gitbooks.io/developerguide/content/general-development/http-filter.html] search needCacheRequest > 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)
[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=16477083#comment-16477083 ] Yang Bo commented on SCB-78: Could you please add more information close this issue? > 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)
[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)