Vue combinée Vue Plate Arborescence
toggle
Laxman Rana
Portlet config page doesnt work with PACL but no errors are printed ?
27 décembre 2012 20:37
Réponse

Laxman Rana

Rang: Youngling

Publications: 0

Date d'inscription: 29 février 2012

Publications Récentes

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 ....
Raymond Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
7 janvier 2013 04:52
Réponse

Raymond Augé

Rang: Youngling

Publications: 0

Date d'inscription: 7 février 2005

Publications Récentes

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.
Raymond Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
7 janvier 2013 08:50
Réponse

Raymond Augé

Rang: Youngling

Publications: 0

Date d'inscription: 7 février 2005

Publications Récentes

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.
Raymond Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
7 janvier 2013 16:37
Réponse

Raymond Augé

Rang: Youngling

Publications: 0

Date d'inscription: 7 février 2005

Publications Récentes

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 ?
7 janvier 2013 22:24
Réponse

Laxman Rana

Rang: Youngling

Publications: 0

Date d'inscription: 29 février 2012

Publications Récentes

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

Forums

To access the Developer Forum, please login to your Liferay.com account if you are already a registered developer or register to become a developer.