Not able to add mixin "mix:versionable" in page nodes
I faced an issue where jcr:uuid is not generated if we publish a page using manage publication, but not if we publish using quick publish. Upon investigation, we discovered that when we publish using quick publish, "mix:versionable" is added to the jcr:mixinTypes property. As a solution, I am trying to add a replication event handler that will add this "mix:versionable" mixin to the jcr:content node of the page if the property is not present. I am unable to add the mixin as I get an exception "org.apache.jackrabbit.oak.api.CommitFailedException: OakAccess0000: Access denied".
Is there any to add this mix:versionable mixin to the node? If there is no way to add the mixin, I will add a custom ID upon page creation but that will require a lot of changes as we have already referenced jcr:uuid for our previous solutions. So, if anyone is aware of how to add this mixin, please provide some insights.