Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mohd Hanafi
Why guest cannot access file in document library?
January 7, 2011 5:06 PM
Answer

Mohd Hanafi

Rank: Junior Member

Posts: 83

Join Date: January 17, 2010

Recent Posts

Hi, all forumers.

I have a document in Document Library. I gave permission to Guest so that they can access the file without login.
When I point to this file in this way,
/c/document_library/get_file?p_l_id=10133&folderId=36352&name=DLFE-711.pdf;
Guest cannot access the file.

But when I change its link to this way, /c/document_library/get_file?uuid=3a06b3e4-08b3-44cc-a3ff-f9e7862806f0&groupId=12510,

it works as well. We can refer the second link by clicking URL Button in CK Editor.

Why?

Please do not answer this question as this, "Reindex all search indexes".



Thanks & regards.


Hanafi, KL.
Hitoshi Ozawa
RE: Why guest cannot access file in document library?
January 8, 2011 7:20 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 8000

Join Date: March 23, 2010

Recent Posts

Which version of Liferay are you using?
Should specify Liferay version and application server type and version when posting.
Mohd Hanafi
RE: Why guest cannot access file in document library?
January 9, 2011 8:47 PM
Answer

Mohd Hanafi

Rank: Junior Member

Posts: 83

Join Date: January 17, 2010

Recent Posts

Hitoshi Ozawa:
Which version of Liferay are you using?
Should specify Liferay version and application server type and version when posting.


Hitoshi,

I'm using Liferay 5.2.3 and tomcat-6.0.18 server.


Thanks & regards.

Hanafi, KL.
Faris Abdulla
RE: Why guest cannot access file in document library?
January 10, 2011 2:36 AM
Answer

Faris Abdulla

Rank: Regular Member

Posts: 183

Join Date: September 1, 2009

Recent Posts

Hi Hanafi,

Check the permission of the document in Document Library. You should give the view permission for guest.

Goto "Permission" and enable "View" for "Guest" for the specific document that you need to give access...

T&R,
Faris
Minhchau Dang
RE: Why guest cannot access file in document library?
January 10, 2011 1:26 PM
Answer

Minhchau Dang

LIFERAY STAFF

Rank: Expert

Posts: 347

Join Date: October 22, 2007

Recent Posts

Mohd Hanafi:

When I point to this file in this way,
/c/document_library/get_file?p_l_id=10133&folderId=36352&name=DLFE-711.pdf;
Guest cannot access the file.

When p_l_id is in the URL, Liferay checks to see if you have permission to see both the layout and the file being referenced.

If you're copying the link from the control panel, then the page resides in the control panel and thus is not accessible to any guest users (and you cannot change this). If you copied the link from a page outside of the control panel, is most likely the case that you have not given the user the ability to view the page that you copied the link from.