pacbot icon indicating copy to clipboard operation
pacbot copied to clipboard

Installer script possible sets up RDS incorrectly

Open jacob-kinzer opened this issue 8 years ago • 5 comments

Install Script

Summary

The install script seems to setup the RDS 'Roles' table with an incorrect type. roleId is set to an BIGINIT when i believe roleId is actually created as an UUID.

db.sql: image

UserRolesServiceImpl.createUserRole: image

Reproduce steps

Run the install script creating a fresh environment and see what the type of roleId is. You can see a failure if you attempt to create a new Role in the web application.

Expected Results

I'm assuming it should be a VARCHAR() but maybe I'm missing something.

Actual Results

roleId is set to a BIGINT

jacob-kinzer avatar Oct 17 '18 13:10 jacob-kinzer

Thanks for letting us know. We will check this and get back. The issue seems to be with the incorrect table mapped. User role creation is a rarely used feature as PacBot has already had the required roles pre-configured.

anilcs81 avatar Oct 17 '18 16:10 anilcs81

Ya it comes with the readonly and admin role but we were also trying to create a role to see if we could limit it further. It looks like an role either has read or write permissions and that is it. We mainly tried to create a role because we wanted to see if we could then look at limiting that role to say a certain asset group.

jacob-kinzer avatar Oct 17 '18 17:10 jacob-kinzer

Role based access to an asset group is already in our pipeline , we shall be releasing it in upcoming versions.

kaykumar avatar Oct 17 '18 18:10 kaykumar

Role based access to an asset group is already in our pipeline , we shall be releasing it in upcoming versions.

Awesome that is really good to hear! As Anil pointed out above this bug isn't really blocking anything because of the two roles already created so its not a big deal but we just saw it in investigating of role based access. Thanks for the information!

jacob-kinzer avatar Oct 17 '18 19:10 jacob-kinzer

The table has been updated as part 1.1 release and so closing it

anilcs81 avatar Feb 04 '19 20:02 anilcs81