Corrupt Data - data on second page of submit is corrupted when referenced via "path" attribute (but is fine when referenced using jstl) [SPR-10442] #15075
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: bulk-closed
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
Will Dev opened SPR-10442 and commented
See attached pictured called "Spring MVC Bug - Screenshot" for the fastest explanation.
When -
You can see from the screenshot - the actual data, being referenced by jstl and ${}, is correct. But the data displayed via the path="" attribute is completely wrong and different data. (In the controller, the data on the 2nd page is not from the first page - it's completely newly created data).
This is causing problems where:
Note that the attached files only show problem #1 - I just didn't have time to reproduce test cases for #2 and #3.
But all problems go away when the modelAttribute name is changed to something that's not the same as the class name.
But it's VERY COMMON, as far as I know (as that's what everyone on our team did by default) to use the classname as the model name. This just shouldn't be happening, something is getting corrupted or something somewhere.
Affects: 3.2.2
Attachments:
The text was updated successfully, but these errors were encountered: