留言板

Not logged (guest) users can't view images from the document library

thumbnail
David Yari Podio Casares,修改在9 年前。

Not logged (guest) users can't view images from the document library

Junior Member 帖子: 36 加入日期: 11-3-24 最近的帖子
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!
Gwowen Fu,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

Expert 帖子: 315 加入日期: 10-12-27 最近的帖子
You also have to give guest view permission on your portlet.
thumbnail
David H Nebinger,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library (答复)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
David 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.
thumbnail
Juan Gonzalez,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi David Yari,

can you confirm your Liferay version?
thumbnail
David Yari Podio Casares,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

Junior Member 帖子: 36 加入日期: 11-3-24 最近的帖子
Juan Gonzalez:
Hi David Yari,

can you confirm your Liferay version?


Liferay 6.2 ga 3 build 20150103155803016.
thumbnail
Juan Gonzalez,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
David 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.
thumbnail
Francisco Javier Barrena,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

New Member 帖子: 2 加入日期: 13-10-16 最近的帖子
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!
thumbnail
Juan Gonzalez,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hola Francisco,

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.
thumbnail
Olaf Kock,修改在9 年前。

RE: Not logged (guest) users can't view images from the document library

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
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.
thumbnail
David Yari Podio Casares,修改在8 年前。

RE: Not logged (guest) users can't view images from the document library

Junior Member 帖子: 36 加入日期: 11-3-24 最近的帖子
I've just installed Liferay 6.2 CE ga4 server and the bug is resolved.

Thank you!