e-ucm / rage-analytics

RAGE Analytics Environment
https://youtu.be/xKrsoi-L5Vo
Apache License 2.0
16 stars 11 forks source link

New user role selection not being saved on signup. #26

Closed coldridj closed 6 years ago

coldridj commented 8 years ago

Clean analytics server installation. New user (developer) created. After logging in various API calls calls fail with HTTP error 403 in different sessions

/game/public

image

/api/roles

image

coldridj commented 8 years ago

Upon further investigation, the developer role is not being assigned to the new user reliably. When added via the admin user management screen this issue is no longer present.

coldridj commented 8 years ago

This should not be closed, I can consistently repeat this error. User roles are not present on user after signup via /api/proxy/afront/signup - role selection can be seen in POST data.

POST: /api/signup {"username":"Test4","email":"jack+test4@playgen.com","password":"password","role":"developer","prefix":"gleaner"}

image

gorco commented 8 years ago

I forgot to comment when I closed the issue.

The user with developer role doesn't have permissions for /game/public (this is intentioned like https://github.com/e-ucm/rage-analytics/issues/34) And the same with /api/roles route (only the admin have permissions to see the roles list)

Both are design decisions.

So the problem is like https://github.com/e-ucm/rage-analytics/issues/34 (I closed it for that reason, the problem is the same) We'll remove the console log and the call for the developer in a future, but for now is usefull for us.

coldridj commented 8 years ago

I have changed the title of this issue - the issue is that the selected role is not being set on the new user despite having been selected in the signup form. The http errors were misleading.

gorco commented 8 years ago

Ok, we'll check this.