Hi,
Currently testing the new contentbox 6.1.0 update on my dev environment.
Updating Contentbox went without a glitch (thanks!).
Now, Creating new pages works as expected, but when I want to edit or delete a page, I have the following error message :
org.hibernate.exception.ConstraintViolationException: could not execute statement
The cause of this error is the FK_contentID field in the cb_contentVersion table of the database. This field cannot be null. Making it nullable solves the issue, but introduces a new one.
After making that field nullable, I can edit and delete pages as expected, but then, the various content versions are not showing in the “History” tab of the page editor in the Contentbox Admin.
A quick look at the database shows that the previous version of the page (the one that is made inactive when saving) has a NULL value in the FK_ContentID column of the database, which triggers the Constraint Violation Exception mentioned above.
See image at https://app.screencast.com/Krk9xUYxjtMzh
Same error when editing/ removing ContentStore Items.
I have not (yet) been able to identify which line of code removes the fk_contentID value on the content version that is made inactive when saving a new version.