Tribune

Home » Liferay Portal » English » 6. Portal Framework

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Thomas Berg
Redirect to login when accessing protected document
15 gennaio 2012 7.59
Risposta

Thomas Berg

Punteggio: Regular Member

Messaggi: 125

Data di Iscrizione: 7 settembre 2009

Messaggi recenti

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
19 luglio 2012 5.09
Risposta

Cedric Soret

Punteggio: New Member

Messaggi: 13

Data di Iscrizione: 27 febbraio 2012

Messaggi recenti

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
23 luglio 2013 13.04
Risposta

Evan Zeimet

Punteggio: New Member

Messaggi: 9

Data di Iscrizione: 23 luglio 2013

Messaggi recenti

Having the same issue. Hoping for a fix.