Combination View Flat View Tree View
Laxman Rana
Portlet config page doesnt work with PACL but no errors are printed ?
December 27, 2012 8:37 PM
Answer

Laxman Rana

Rank: Junior Member

Posts: 42

Join Date: February 29, 2012

Recent Posts

I have created a simple portlet using the Liferay MVC framework and have added a ConfigurationActionImpl class and configuration.jsp for portlet settings.
I have used <liferay-ui:message > tag to show labels.

- Without PACL it works fine.
- With PACL it is not showing the values mapped to the keys in properties file. It is showing the keys intact. No errors are reported in the console like with other PACL errors.
These two lines are getting printed when i am deploying the portlet

Attempted to read file global-configuration.properties
Attempted to read file C:\liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\bin\service.properties


I have done following entries in liferay-plugin-package.properties

security-manager-get-bean-property=\
com.liferay.portal.util.PortalUtil,\
com.liferay.portlet.documentlibrary.model.DLFileEntry,\
com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil,\
com.liferay.portlet.documentlibrary.model.DLFileRank,\
com.liferay.portlet.PortletPreferencesFactoryUtil,\
com.liferay.portal.kernel.cache.CacheRegistryUtil,\
com.liferay.portal.kernel.cache.key.CacheKeyGeneratorUtil,\
com.liferay.portal.kernel.language.LanguageUtil,\
com.liferay.portal.kernel.bean.PortalBeanLocatorUtil,\
com.liferay.portal.kernel.deploy.hot.HotDeployUtil,\
com.liferay.portal.kernel.servlet.DirectRequestDispatcherFactoryUtil,\
com.liferay.portal.kernel.servlet.DirectServletRegistryUtil,\
com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil,\
com.liferay.portal.kernel.staging.LayoutStagingUtil,\
com.liferay.portal.kernel.dao.shard.ShardUtil,\
com.liferay.portal.kernel.dao.db.DBFactoryUtil,\
com.liferay.portal.kernel.dao.orm.FinderCacheUtil,\
com.liferay.portal.kernel.dao.orm.EntityCacheUtil,\
com.liferay.portal.security.auth.AuthTokenUtil,\
com.liferay.portal.service.permission.PortletPermissionUtil,\
com.liferay.portal.kernel.util.PropsUtil,\
com.liferay.portal.kernel.util.HttpUtil,\
com.liferay.portal.kernel.util.HtmlUtil,\
com.liferay.portal.kernel.util.LocaleUtil

security-manager-services=\
com.liferay.portlet.documentlibrary.service.DLFileEntryService#getFileEntryByUuidAndGroupId,\
com.liferay.portlet.documentlibrary.service.DLFileEntryService#getFileAsStream,\
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService#getFileAsStream,\
com.liferay.portlet.documentlibrary.service.DLFileRankLocalService#updateFileRank,\
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService#getFileAsStream,\
com.liferay.portlet.asset.service.AssetEntryLocalService#incrementViewCounter,\
com.liferay.portal.service.GroupLocalService,\
com.liferay.portal.service.PortletPreferencesLocalService,\
com.liferay.portal.service.LayoutLocalService,\
com.liferay.portal.service.LayoutSetLocalService

security-manager-files-read=\
${java.io.tmpdir}${file.separator}-,\
${liferay.web.portal.dir}${file.separator}html${file.separator}taglib${file.separator}-,\
${liferay.web.portal.dir}${file.separator}html${file.separator}themes${file.separator}-


security-manager-files-write=${java.io.tmpdir}${file.separator}-


Thanks in advance ....
Ray Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
January 7, 2013 4:52 AM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

This is due to an error being swallowed by the portal when passing through delegation of requests which occurs in the config code.

I'm formualting the appropriate details to resolve this in a post shortly.

Appologies for the delay.
Ray Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
January 7, 2013 8:50 AM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

Laxman, could you show me how you have configured your localization files?

There are several ways that could be done and I want to make sure I check your case.
Ray Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
January 7, 2013 4:37 PM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

Ok, from my tests the only thing you are missing is a declaration for:

1security-manager-get-bean-property=\
2     ...,\
3     com.liferay.portlet.PortletConfigFactoryUtil,\
4     ...


Can you test this and let me know?
Laxman Rana
RE: Portlet config page doesnt work with PACL but no errors are printed ?
January 7, 2013 10:24 PM
Answer

Laxman Rana

Rank: Junior Member

Posts: 42

Join Date: February 29, 2012

Recent Posts

Thank you very much Raymond ... It worked ...!! emoticon