DomGarguilo opened a new issue, #5883:
URL: https://github.com/apache/accumulo/issues/5883
While working on #5876, I noticed the following code (newly formatted but
the logic was the same before):
```
public static NamespacePermission getEquivalent(SystemPermission
permission) {
return switch (permission) {
case CREATE_TABLE -> NamespacePermission.CREATE_TABLE;
case DROP_TABLE -> NamespacePermission.DROP_TABLE;
case ALTER_TABLE -> NamespacePermission.ALTER_TABLE;
case ALTER_NAMESPACE -> NamespacePermission.ALTER_NAMESPACE;
case DROP_NAMESPACE -> NamespacePermission.DROP_NAMESPACE;
case GRANT -> NamespacePermission.ALTER_NAMESPACE;
default -> null;
};
}
```
Specifically `case GRANT -> NamespacePermission.ALTER_NAMESPACE;`. I am
wondering why `SystemPermission.GRANT` is mapping to
`NamespacePermission.ALTER_NAMESPACE` instead of `NamespacePermission.GRANT`.
This may be the intended mapping but I thought I would ask in case its a
bug/oversight.
This same question/scenario exists for 2.1 and 4.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]