-
Bug
-
Resolution: Done
-
High
-
Nitrogen-SR1
-
None
While attempting to create user that allready exist trough http://localhost:8181/auth/v1/users
following is showed
{
"message": "There was an internal error creating the user",
"details": "org.opendaylight.aaa.h2.persistence.StoreException: SQL Exception : org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: \"PRIMARY_KEY_4D ON PUBLIC.USERS(USERID) VALUES ('test_user@xy', 3)\"; SQL statement:\ninsert into users (userid,domainid,name,email,password,description,enabled,salt) values(?,?,?,?,?,?,?,?) [23505-191]"
}
This is problem for two reasons
- This error is not exactly user friendly, all the user needs to know here is "You are attemtping to create allready existing user"
- And the more important, it directly exposes which schema/table contains user credentials.