Forums de discussion
Not logged (guest) users can't view images from the document library
David Yari Podio Casares, modifié il y a 9 années.
Not logged (guest) users can't view images from the document library
Junior Member Publications: 36 Date d'inscription: 24/03/11 Publications récentes
Hi all,
I've developed a portlet that is showing some images from a document-library type field in a Dynamic Data List. To do so, I extract the data from the DDL record and build the URL to show the image. So far I've tried these two formats:
1) /c/document_library/get_file?uuid=527a3d45-a78d-4088-be5b-c122573ed15b&groupId=10182
2) /documents/10182/10819/usa.jpg
Well, both formats work ok when a user is logged in Liferay, but when there's no user logged, the images show as a broken link. If I copy the URL in the explorer's bar and try to see the image directly, I'm redirected to Liferay's login page (if logged I see the image perfectly).
All the images and the folder that contains them have the "View" permission granted for "Guest" users.
Does someone know how can I make the Guest users able to view these images?
Thanks!
I've developed a portlet that is showing some images from a document-library type field in a Dynamic Data List. To do so, I extract the data from the DDL record and build the URL to show the image. So far I've tried these two formats:
1) /c/document_library/get_file?uuid=527a3d45-a78d-4088-be5b-c122573ed15b&groupId=10182
2) /documents/10182/10819/usa.jpg
Well, both formats work ok when a user is logged in Liferay, but when there's no user logged, the images show as a broken link. If I copy the URL in the explorer's bar and try to see the image directly, I'm redirected to Liferay's login page (if logged I see the image perfectly).
All the images and the folder that contains them have the "View" permission granted for "Guest" users.
Does someone know how can I make the Guest users able to view these images?
Thanks!
Gwowen Fu, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
Expert Publications: 315 Date d'inscription: 27/12/10 Publications récentes
You also have to give guest view permission on your portlet.
David H Nebinger, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library (Réponse)
Liferay Legend Publications: 14918 Date d'inscription: 02/09/06 Publications récentesDavid Yari Podio Casares:
Does someone know how can I make the Guest users able to view these images?
This is a known bug with GA3. There's another thread in the forums where options are discussed but, long story short, they're working on a GA 4 which is going to resolve the issue.
Juan Gonzalez, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Hi David Yari,
can you confirm your Liferay version?
can you confirm your Liferay version?
David Yari Podio Casares, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
Junior Member Publications: 36 Date d'inscription: 24/03/11 Publications récentesJuan Gonzalez:
Hi David Yari,
can you confirm your Liferay version?
Liferay 6.2 ga 3 build 20150103155803016.
Juan Gonzalez, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentesDavid Yari Podio Casares:
Juan Gonzalez:Hi David Yari,
can you confirm your Liferay version?
Liferay 6.2 ga 3 build 20150103155803016.
Gracias David Yari,
as other David (Nebigner) said, it is a known bug in GA3 (https://issues.liferay.com/browse/LPS-44724
and we are preparing a release.
Francisco Javier Barrena, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
New Member Publications: 2 Date d'inscription: 16/10/13 Publications récentes
Hi Juan,
there are some workaround to fix this bug? Or we must to wait the release?
In that case... the release will be for the community version or only for EE version?
Thanks!
there are some workaround to fix this bug? Or we must to wait the release?
In that case... the release will be for the community version or only for EE version?
Thanks!
Juan Gonzalez, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Hola Francisco,
Yes, please read this thread for more info: https://www.liferay.com/community/forums/-/message_boards/message/48320221
There will be a CE release too, of course .
BTW, the temptative date for CE release was this week but due to a regression that can cause issues in some environment we decided to delay a week. Will post details soon.
Francisco Javier Barrena:
Hi Juan,
there are some workaround to fix this bug? Or we must to wait the release?
Yes, please read this thread for more info: https://www.liferay.com/community/forums/-/message_boards/message/48320221
Francisco Javier Barrena:
In that case... the release will be for the community version or only for EE version?
There will be a CE release too, of course .
BTW, the temptative date for CE release was this week but due to a regression that can cause issues in some environment we decided to delay a week. Will post details soon.
Olaf Kock, modifié il y a 9 années.
RE: Not logged (guest) users can't view images from the document library
Liferay Legend Publications: 6403 Date d'inscription: 23/09/08 Publications récentes
The commits that you can use to backport the issue yourself are listed in the ticket. If you want to wait, rumors are that GA4 is scheduled for "soon". I don't dare giving a date though.
David Yari Podio Casares, modifié il y a 8 années.
RE: Not logged (guest) users can't view images from the document library
Junior Member Publications: 36 Date d'inscription: 24/03/11 Publications récentes
I've just installed Liferay 6.2 CE ga4 server and the bug is resolved.
Thank you!
Thank you!