shiro-dev mailing list archives

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

In the default permission handling based on WildcardPermission

file:*:myfile implies file:read:myfile


file:myfile implies file:read:myfile

* and missing part are wildcards.


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 "" .




View raw message