libreant
libreant copied to clipboard
simplified domain of admins capability is the empty string
regular domain is .+
(match all).
simToReg(".+")
is not capable to handle this string and return the empty string.
have you any clue about why can't simToReg
handle it?
have you any clue about why can't simToReg handle it?
Because it's not a simplified regular expression.
I can't understand the consequences of this bug
We need to extend our simplified regular expression in order to support multilevel expansion. At the moment we only support special char *
that is an intra-slashes expansion.
simToReg will convert *
in [^/]+
.
We need another special char to be converted in .+
no, really, I am missing something. Is there any bug? are there thing that do not work? are there things that a user cannot do?
On 12/27/2015 04:01 PM, BoySka wrote:
no, really, I am missing something. Is there any bug? are there thing that do not work? are there things that a user cannot do?
It's not possible to create a capability with a domain that match all strings after certain char.
For instance it's not possible to generate some domain like '.+' or '^/?volumes/.+' passing through a simplified expression.
ael wrote:
On 12/27/2015 04:01 PM, BoySka wrote:
no, really, I am missing something. Is there any bug? are there thing that do not work? are there things that a user cannot do?
It's not possible to create a capability with a domain that match all strings after certain char.
For instance it's not possible to generate some domain like '.+' or '^/?volumes/.+' passing through a simplified expression.
oh, ok, now this is much clearer.
Why don't we fix at the UI layer? I mean, if a user wants to have simplified expression (99% of the time that's what she wants) then everything is fine. Clicking on a certain checkbox, normal regexp can be inserted directly.