'form-data prameters are sent in body, causing the getParameter method to return null

I've recently upgraded to the spring boot version 2.6.3 while using camunda 7.17.0. The login camunda page, sends a post request, but the form-data parameters are sent in the body, causing the getParameter method to return null.

I am implementing the class Filter for camunda login:

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
 throws IOException, ServletException {
    HttpServletRequest servletRequest = (HttpServletRequest) request;
    var param = servletRequest.getParameter(PARAMETER_KEY);
    //other things
}

but the parameter is returned as null.

Anyone knows how to solve it?



Solution 1:[1]

Adding the property spring.mvc.hiddenmethod.filter.enabled=true in the application.properties file solved the issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 shorse