Activities

September 16
Ken Sperow commented on LPS-67458.
10:44 AM Debugging the resource browser within the browsers developer's tools. It appears that browser.html makes an asynchronous call to "GetFoldersAndFiles" with the following sURL: /c/portal/fckeditor?p_p_id=15&Command=GetFoldersAndFiles&Type=Document&SortType=Title&Ascending=true&CurrentFolder=%2F&uuid=1473977114889 {code} if ( callBackFunction ) oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load. else return oXML.LoadUrl( sUrl ) ; {code} If you trace this down further GetFoldersAndFilesCommand ends up calling DocumentCommandReceiver and within the getRootFolders method it does the following: {code} if (group.hasStagingGroup()) { Group stagingGroup = group.getStagingGroup(); if ((stagingGroup.getGroupId() == doAsGroupId) && group.isStagedPortlet(portletId) && !group.isStagedRemotely() && isStagedData(group)) { groupId = stagingGroup.getGroupId(); descriptiveName = stagingGroup.getDescriptiveName(); } } {code} The code knows that the staged group is staged but it fails to go into the second if block because "doAsGroupId" is zero. The root cause is that the sURL passed in from browser.html doesn't include the "doAsGroupId" that is passed into it as a parameter. I fixed this issue by hooking: custom_jsps/html/js/editor/ckeditor/editor/filemanager/browser/liferay/browser.html. Here are the fairly simple additions needed: {code} 150,158d149 < // KS - need to pass the doAsGroupId if it exists < var doAsGroupIdParam = GetUrlParam( 'doAsGroupId' ) ; < < if (doAsGroupIdParam) { < sUrl += '&doAsGroupId=' + doAsGroupIdParam ; < } {code}
September 15
Ken Sperow commented on LPS-53909.
August 19
Ken Sperow commented on LPS-67458.
August 3
Ken Sperow added LPS-67458.
Ken Sperow added LPS-67457.
March 31
Ken Sperow replied to Sameer Naik's message board post, RE: openid-connect support in Liferay, in Liferay.com.
12:00 PM Go to Category
March 17
9:08 AM Go to Category
October 28
Ken Sperow commented on LPS-49447.
October 27
Ken Sperow commented on LPS-49447.
Ken Sperow commented on LPS-49447.
Subscribe to Ken Sperow's activities. (Opens New Window)