adminHDIGroup.js fails with a 'grantor and grantee are identical' error in a specific case #75
Closed
Description
adminHDIGroup.js fails with a 'grantor and grantee are identical' error in a specific case:
a) I create an hdiadmin user with adminHDI.js first
b) the hdiadmin user is used to create the container group
c) then the hdiadmin user is used to grant the container group admin privileges to hdiadmin (needed to create the container afterwards)
In this case the GRANT USER/ROLE ADMIN TO hdiadmin fails with the above error
I have a quick fix that simply reads the database user name from the configuration file again and if this user name equals the user given in the command-line, the statements are skipped.