Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Thomas Berg
Redirect to login when accessing protected document
January 15, 2012 7:59 AM
Answer

Thomas Berg

Rank: Regular Member

Posts: 119

Join Date: September 7, 2009

Recent Posts

Hi,

I've put a document in a certain organization's Document Library and have updated the permissions so that only organization members (and the owner) can access the document.

Users who click on the download link for the file (the url created by the Document Library) while not being logged in gets a message saying
"You do not have permission to access the requested resource". (com.liferay.portal.security.auth.PrincipalException)

This is expected behaviour I guess but is it possible to redirect non-logged-in users to the login page (appending a redirect-parameter for the resource) instead of showing this message?

Thanks in advance,
Regards Thomas
Cedric Soret
RE: Redirect to login when accessing protected document
July 19, 2012 5:09 AM
Answer

Cedric Soret

Rank: New Member

Posts: 13

Join Date: February 27, 2012

Recent Posts

Hello,

It's late but had someone found any solution to this problem ?

Regards
Cedric
Evan Zeimet
RE: Redirect to login when accessing protected document
July 23, 2013 1:04 PM
Answer

Evan Zeimet

Rank: New Member

Posts: 9

Join Date: July 23, 2013

Recent Posts

Having the same issue. Hoping for a fix.