The setResourceCreatePermissions methods are not properly validating the set of requested permissions and currently accept duplicate *CREATE permissions that differ in their grant option.
This would cause a SQLException to be thrown when attempting to add those permissions.
This bug is an omission in the existing validation code and only affects the *CREATE system permission, i.e. duplicate non-system permissions that differ in grant options are properly caught and cause an IllegalArgumentException to be thrown.
The
setResourceCreatePermissions
methods are not properly validating the set of requested permissions and currently accept duplicate*CREATE
permissions that differ in their grant option.This would cause a
SQLException
to be thrown when attempting to add those permissions.This bug is an omission in the existing validation code and only affects the
*CREATE
system permission, i.e. duplicate non-system permissions that differ in grant options are properly caught and cause anIllegalArgumentException
to be thrown.