pathpol UnmarshalJSON
and UnmarshalYAML
should check for default action
#4504
Labels
bug
Something isn't working
If one does unmarshal a json or yaml path policy like
["+ 42", "-"]
it is not guaranteed that the last entry is going to be a default action.It should have a similar check like the in NewACL:
Otherwise, using
Eval
on the malformed ACL is hitting this panic.The text was updated successfully, but these errors were encountered: