libreant icon indicating copy to clipboard operation
libreant copied to clipboard

simplified domain of admins capability is the empty string

Open ael-code opened this issue 9 years ago • 7 comments

regular domain is .+ (match all). simToReg(".+") is not capable to handle this string and return the empty string.

ael-code avatar Nov 13 '15 08:11 ael-code

have you any clue about why can't simToReg handle it?

boyska avatar Dec 03 '15 23:12 boyska

have you any clue about why can't simToReg handle it?

Because it's not a simplified regular expression.

ael-code avatar Dec 27 '15 14:12 ael-code

I can't understand the consequences of this bug

boyska avatar Dec 27 '15 14:12 boyska

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

ael-code avatar Dec 27 '15 14:12 ael-code

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?

boyska avatar Dec 27 '15 15:12 boyska

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-code avatar Dec 27 '15 15:12 ael-code

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.

boyska avatar Dec 27 '15 15:12 boyska