Details
Description
If we create a project and add a document to that project when we try to restore the core version a ConstraintViolationException might be thrown.
The issue happens because the first version stored in the version history (core version) doesn't contain the mixin branchInfo, and thus a failure in the Jackrabbit code that restores this version fails when processing the property branchName (which is defined in that mixin).
This issue isn't happening often because most of our documents have the mixin hippostd:relaxed, which allows to have any property, but if we define a document without that mixin, we will face the issue.