[AAA-45] Restarting the controller causes multiple insertions of admin and user users Created: 01/Jul/15  Updated: 21/Mar/19  Resolved: 07/Jul/15

Status: Resolved
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ryan Goulding Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3923

 Description   

Restarting the controller causes the StoreBuilder.init() method to be called more than once. IdmLight changes the name of the database file to "idmlight.db.mv.db". Hitherto, StoreBuilder.init() is called if the file "idmlight.db" does not exist. However, the change to the naming convention of the idmlight database file was not reflected in the criteria for calling StoreBuilder.init(). As it stands, new default "admin" and "user" users are created each time the controller is started.

idmlight.db=> select * from users;
userid | name | email | password | description | enabled
------------------------------------+--------
1 | admin | | admin | admin user | 1
2 | user | | user | user user | 1
3 | admin | | admin | admin user | 1
4 | user | | user | user user | 1
5 | admin | | admin | admin user | 1
6 | user | | user | user user | 1



 Comments   
Comment by Ryan Goulding [ 07/Jul/15 ]

stable/lithium: https://git.opendaylight.org/gerrit/#/c/23654/
master: https://git.opendaylight.org/gerrit/#/c/23653/

Generated at Wed Feb 07 19:08:29 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.