Hi all,
I have realized a reserved area and I'm having some issues managing multiple 
languages.
In order to protect the pages within the reserved area I have simply configured 
a custom security callback using the class 
info.magnolia.cms.util.SimpleUrlPattern and setting "patternString = 
/reserved-area*" (reserved-area is the root page of our private area). Ihave 
then configured "location = /login.html" as redirect for not authenticated 
users.

All is working fine: when a not logged user requests a page under 
/reserved-area, he's redirect to login.html.

The problem is that if the user tries to access a protected page in a specific 
language (es. /en/reserved-area/pageX.html) the security callback doesn't 
intercept the request and the user can access the page even if he is not logged.
I have tried to set differently the patternString (i.e. /*reserved-area*) but 
it's not working.

Is this a bug of the SimpleUrlPattern? Otherwise anyone can suggest me a 
general regex which can match all the possible cases?

Best regards,
Pietro

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=ed7c6e3c-eb06-4f0f-945b-0b6e63021b98


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to