You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the preview branch, when adding comments to config files with "#", the tokens will be misread if the comment contains a comma.
For instance, we add a comment to the rbac_model.conf in the examples of unit tests, as shown below.
[request_definition]
r = sub, obj, act
[policy_definition]
p = sub, obj, act #This is a comment, splited by a comma
[role_definition]
g = _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
Then the token count of policy definitions will be 4, which is one more than what is expected. The tokens are read as sub, obj, act #This is a comment, splited by a comma.
I think it's an unexpected behavior. If it is, I would like to solve it soon.
The text was updated successfully, but these errors were encountered:
The environment
In branch
preview
, windows 11, .NET 6The description
In the preview branch, when adding comments to config files with "#", the tokens will be misread if the comment contains a comma.
For instance, we add a comment to the
rbac_model.conf
in the examples of unit tests, as shown below.Then the token count of policy definitions will be 4, which is one more than what is expected. The tokens are read as
sub
,obj
,act #This is a comment
,splited by a comma
.I think it's an unexpected behavior. If it is, I would like to solve it soon.
The text was updated successfully, but these errors were encountered: