留言板
Principle Exception in Image gallery
manasa chandri,修改在12 年前。
Principle Exception in Image gallery
Regular Member 帖子: 152 加入日期: 10-9-28 最近的帖子
Hi All,
I had written code for the adding the images in image gallery before sign in, i had written the add_image permission.
I am getting the principle exception(com.liferay.portal.security.auth.PrincipalException)?
Can anybody know the solution for my problem, please help me.
Thanks & Regards,
Manasa.chandri
I had written code for the adding the images in image gallery before sign in, i had written the add_image permission.
I am getting the principle exception(com.liferay.portal.security.auth.PrincipalException)?
Can anybody know the solution for my problem, please help me.
Thanks & Regards,
Manasa.chandri
Vitaliy Koshelenko,修改在12 年前。
RE: Principle Exception in Image gallery
Expert 帖子: 319 加入日期: 11-3-25 最近的帖子
Maybe, you using *ServiceUtil instead of *LocalServiceUtil ? Use *LocalServiceUtil, it will not check the permissions
manasa chandri,修改在11 年前。
RE: Principle Exception in Image gallery
Regular Member 帖子: 152 加入日期: 10-9-28 最近的帖子
Hi,
Thank you for giving reply,
I am using serviceUtil, but i tried LocalServiceUtil instead of serviceUtil, i got that one, but further if i get any problem for this?
Thanks & Regards,
Manasa.chandri
Thank you for giving reply,
I am using serviceUtil, but i tried LocalServiceUtil instead of serviceUtil, i got that one, but further if i get any problem for this?
Thanks & Regards,
Manasa.chandri
Hitoshi Ozawa,修改在12 年前。
RE: Principle Exception in Image gallery
Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
It's because you're trying to use the image gallery before login. Image gallery is set with permission on who and do what.
manasa chandri,修改在11 年前。
RE: Principle Exception in Image gallery
Regular Member 帖子: 152 加入日期: 10-9-28 最近的帖子
Hi,
Thank you for giving reply,
I have written permission for the ADD_IMAGE
String actionIds = ActionKeys.ADD_IMAGE;
ResourcePermissionServiceUtil.addResourcePermission(group.getGroupId(), companyId, name, scope, primKey, roleId, actionIds);
I have attached the my permission code.
Thanks & Regards,
Manasa.chandri.
Thank you for giving reply,
I have written permission for the ADD_IMAGE
String actionIds = ActionKeys.ADD_IMAGE;
ResourcePermissionServiceUtil.addResourcePermission(group.getGroupId(), companyId, name, scope, primKey, roleId, actionIds);
I have attached the my permission code.
Thanks & Regards,
Manasa.chandri.