CheckboxTag incorrectly processing hidden field through RequestDataValueProcessor [SPR-17147] #21684
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Ander Ruiz opened SPR-17147 and commented
CheckBoxTag may create a hidden field which name will be "_checkBoxName" and its value is usually "on". The problem is that when this field is sent to RequestDataValueProcessor interface, instead of sending it as a "hidden" field it is sent as if it was a "checkbox", which is incorrect, in version 5.0.7 this line:
should be changed to:
At least the following classes suffer the same issue
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/CheckboxesTag.java
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/CheckboxTag.java
i.e. SelectTag is handling the hidden field properly
Affects: 4.3.18, 5.0.7
Referenced from: commits fa72186, 9580bbd, bd060a1
Backported to: 4.3.19
The text was updated successfully, but these errors were encountered: