Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.4.13 DXP U64, Master
Description
Step to reproduce:
- Add two web contents
- Add an Asset Publisher to a widget page
- Navigate to the configuration modal of Asset Publisher
- Change the Asset Selection to Manual
- Expand the Asset Entries section
- Select both web contents
- Remove one
- Reselect that web content
Expected Results:
The configuration modal should be rendered well.
Actual Results:
The configuration modal becomes empty. The following error is thrown on server console:
2023-02-14 02:35:34.001 ERROR [http-nio-8080-exec-10][BatchingBatch:139] HHH000315: Exception executing batch [org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: update PortletPreferenceValue set mvccVersion=?, smallValue=? where portletPreferenceValueId=? and mvccVersion=?], SQL: update PortletPreferenceValue set mvccVersion=?, smallValue=? where portletPreferenceValueId=? and mvccVersion=? 2023-02-14 02:35:34.008 ERROR [http-nio-8080-exec-10][PortletServlet:118] Unable to process portlet com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet: org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: update PortletPreferenceValue set mvccVersion=?, smallValue=? where portletPreferenceValueId=? and mvccVersion=?; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: update PortletPreferenceValue set mvccVersion=?, smallValue=? where portletPreferenceValueId=? and mvccVersion=? javax.portlet.PortletException:
Reproduced on:
Tomcat 9.0.71 + MySQL 5.7. Portal master GIT ID: a5c96d94cf09ad045c4ab352ae0730a8f5af5712.
Tomcat 9.0.71 + MySQL 5.7. Portal 7.4.13-DXP-U64 build #6356.