Thanks for the info @sivakumarkanoori
I checked it out but it's not clear to me what the solution is.
Initially, it looked like it might have been necessary to add a node/property somewhere (maybe to the page) i.e.:
“dependencies” of String[] type with value of “cq.shared”
and rebuild clientlibs.
The last by comment @michaelc3108339 suggests adding some code somewhere:
After migration: from 6.2 to 6.4. There is no need to add cq:shared, just review in detail where the code started to fail.
Add the next code to load user data at the contentWindow level.
var contentFrame = parent.frames["ContentFrame"];
Granite.author.ContentFrame = contentFrame;
Granite.author.ContentFrame.contentWindow.CQ = {};
Granite.author.ContentFrame.contentWindow.CQ.shared = {};
Granite.author.ContentFrame.contentWindow.parent.CQ.shared.User.load()
Granite.author.ContentFrame.contentWindow.CQ.shared.User = Granite.author.ContentFrame.contentWindow.parent.CQ.shared.User;
where this might be added isn't 100% clear to me.
The last replier @briankasingli (also running AEM 6.5) implies the above is not a long term solution.
@this-that-the-otter : Usually , i dont suggest to make changes directly in /libs , instead you can overlay and make changes. In our case first try it under /libs if it works then you can overlay.
As per the comment ..
you can go to below url add the code
/libs/cq/gui/components/authoring/editors/clientlibs/core/js/actions/lockMode.js
go to the below function unlockPage() function and add the below code in starting of the function
var contentFrame = parent.frames["ContentFrame"];
ns.ContentFrame = contentFrame;
ns.ContentFrame.contentWindow.CQ = {};
ns.ContentFrame.contentWindow.CQ.shared = {};
ns.ContentFrame.contentWindow.parent.CQ.shared.User.load()
ns.ContentFrame.contentWindow.CQ.shared.User = ns.ContentFrame.contentWindow.parent.CQ.shared.User;
Thanks,
Siva