unmk2 / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

Critical API Error by creating user without role_id #502

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. http://<host>/api/users/create?login=<login>&password=<password>

Actual result:
a user will be created with role_id in table users

Expected result:

after this, nobody can navigate in webinterface to the existing users, the 
following error displayed:

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

(If you're the administrator of this website, then please read the log file 
"production.log" to find out what went wrong.)

Version of the product: 2.3

Additional information:

Please fix the API to require the role_id or autoset the role-id

Original issue reported on code.google.com by goo...@greenmark-it.de on 3 Apr 2013 at 3:03