Recently we are noticing that newly created pages is not having any jcr:uuid associated with it. Is there any way to enable the automatic generation of jcr:uuid for every new page created. It was working fine when we checked last time.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I want to know about the potential reason behind the issue I am facing where uuid is not being generated. Any idea what can be the reason or a fix for this?
Views
Replies
Total Likes
Hi @Ankan_Ghosh
Are you facing this issue in any specific instance/environment or in all environment? If in all environment, were there any changes made after which you started facing this issue?
Only on stage and prod environment. Dev is still generating the uuid after publishing the pages. I build the main branch locally and uuid is being generated in this case as well.
Views
Replies
Total Likes
Hi,
The creation of the jcr:uuid
is provided by the mixin mix:referenceable
. By default, pages won’t have this property so you won't have this by default either.
Auto generating jcr:uuid? There could be tweaks to try to create the jcr:uuid
when the page is first created, but I would not recommend this. Instead, use the default ID to identify any node in JCR (the path). If this is not sufficient, i think it’s preferable to come up with a custom solution for generating an ID.
References:
https://jackrabbit.apache.org/archive/wiki/JCR/Mix--referenceable_115513457.html
https://stackoverflow.com/questions/31012002/how-does-jackrabbit-generate-jcruuid-in-aem
Hope this helps.
@Ankan_Ghosh Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies