掲示板
can't access to users portrait images, img_id_token??
9年前 に Frédéric Aubé によって更新されました。
can't access to users portrait images, img_id_token??
Junior Member 投稿: 37 参加年月日: 14/07/17 最新の投稿
Hi
I updated Liferay Portal Community Edition 6.2 CE GA2 to GA3
Now I can not access users portraits and my problem seems coming from auth tokens or something like that.
I used that url to get the images, all worked fine, before... :
http://<host>:<port>/image/user_portrait?img_id=<imageId>
If i add "&img_id_token=VHZY9BLxJNTuH3vX0vkzvDPzr8g%3D&t=1423724264923" to the url, its all good
What is that "img_id_token" and how do i get that in my jsp?
I updated Liferay Portal Community Edition 6.2 CE GA2 to GA3
Now I can not access users portraits and my problem seems coming from auth tokens or something like that.
I used that url to get the images, all worked fine, before... :
http://<host>:<port>/image/user_portrait?img_id=<imageId>
If i add "&img_id_token=VHZY9BLxJNTuH3vX0vkzvDPzr8g%3D&t=1423724264923" to the url, its all good
What is that "img_id_token" and how do i get that in my jsp?
9年前 に Tomas Polesovsky によって更新されました。
RE: can't access to users portrait images, img_id_token??
Liferay Master 投稿: 676 参加年月日: 09/02/13 最新の投稿
Hi Frédéric,
please use this code:
You can also turn off this protection in portal-ext.properties:
The risk related to disabling the protection is that anybody is able to enumerate users profile pictures and identify users.
please use this code:
String userPortraitURL = user.getPortraitURL(themeDisplay);
You can also turn off this protection in portal-ext.properties:
users.image.check.token=false
The risk related to disabling the protection is that anybody is able to enumerate users profile pictures and identify users.
9年前 に Frédéric Aubé によって更新されました。
RE: can't access to users portrait images, img_id_token??
Junior Member 投稿: 37 参加年月日: 14/07/17 最新の投稿
Thank you, both solutions work !
8年前 に Mohammad Iqbal Khokhar によって更新されました。
RE: can't access to users portrait images, img_id_token??
New Member 投稿: 1 参加年月日: 15/03/30 最新の投稿
Hi Frédéric,
You can use following code for img_id_token.
img_id_token=
HttpUtil.encodeURL(DigesterUtil.digest(myUser.getUuid()))
You can use following code for img_id_token.
img_id_token=
HttpUtil.encodeURL(DigesterUtil.digest(myUser.getUuid()))
7年前 に Luciano Mendes do Prado によって更新されました。
RE: can't access to users portrait images, img_id_token??
New Member 投稿: 1 参加年月日: 16/08/11 最新の投稿
Hi Mohammad,
Thanks work!
Thanks work!
7年前 に safa safa によって更新されました。
RE: can't access to users portrait images, img_id_token??
New Member 投稿: 6 参加年月日: 16/10/06 最新の投稿
hi mouhamed
please could u help me .
it doesn't work for me . i don't know wath's the problem
please could u help me .
it doesn't work for me . i don't know wath's the problem