On Wed, Sep 30, 2009 at 3:50 PM, Alexander Klimetschek <[email protected]> wrote:
> On Wed, Sep 30, 2009 at 14:04, Vidar Ramdal <[email protected]> wrote:
>> There's one problem with that: If the user is not granted access
>> 'something', that 'something' is invisible to the user. Thus, you
>> cannot distinguish between a 404 situation and a 401 (not authorized)
>> situation.
>
> You can do the redirect to the login form in the 404 error handler
> (eg. /libs/sling/servlet/errorhandler/404.jsp).

Yes, but then you would get a login form in situations where you'd
rather get a 404, like when following a broken link.

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to