shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Khangaonkar <khangaon...@gmail.com>
Subject WildcardPermission
Date Thu, 23 Jun 2011 19:59:38 GMT
Hi,

In the default permission handling based on WildcardPermission

file:*:myfile implies file:read:myfile

and

file:myfile implies file:read:myfile

* and missing part are wildcards.

But

file::myfile does not imply file:read:myfile.

With file::myfile , WildcardPermission treats "file" , "", "myfile" as
the parts. There is no wildcard. It has to be a
direct match.

Is this the intended behaviour ? I ran into it because of a user error
and I am unable to think of how a "" part
might be useful.

I was feeling that WildcardPermission should throw an
IllegalArgumentException if one of the parts is a "" .

thanks

Manoj

-- 
http://khangaonkar.blogspot.com/

Mime
View raw message