return request HTTP method to fix problem with multipart validation added

to Dispatcher in WW-4768 and JakartaMultiPartRequest in WW-4767
This commit is contained in:
Paul Heaberlin
2017-08-22 17:01:05 -05:00
parent 1949471886
commit fa7c8cbe5c
@@ -31,6 +31,7 @@ import java.util.Locale;
import java.util.Map;
import javax.portlet.ActionRequest;
import javax.portlet.ClientDataRequest;
import javax.portlet.PortletContext;
import javax.portlet.PortletRequest;
import javax.portlet.PortletRequestDispatcher;
@@ -161,7 +162,12 @@ public class PortletServletRequest implements HttpServletRequest {
* @see javax.servlet.http.HttpServletRequest#getMethod()
*/
public String getMethod() {
return null;
if (portletRequest instanceof ClientDataRequest) {
return ((ClientDataRequest) portletRequest).getMethod();
}
else {
return null;
}
}
/*