Apache Struts2 REST 插件无法正确解析分块... 笔记

Apache Struts2 REST 插件无法正确解析分块请求

由 Daniel Owens 通过 Fulldisclosure 于 11 月 1 日发布 描述 Apache Struts2 REST 插件(版本 7.4.0 及以下)的 ContentTypeInterceptor.intercept(ActionInvocation) 仅在 HttpServletRequest#getContentLength() 返回正值时反序列化请求体,并强制实施 struts.rest.content.maxLength 限制。当 Content-Length 标头缺失时,getContentLength() 会返回 -1,这在任何超文本传输协议(HTTP)...