[PATCH] 479 Fixed database user verification.
Previously the ConfigurationUtils.setupDBUser() was checking whether the database user already exists by calling findUsers() which may return multiple results or throw an exception if not found. The code has been modified to call getUser() which will return exactly one user or null if not found. Ticket #920 -- Endi S. Dewata
On 4/30/2014 11:12 AM, Endi Sukma Dewata wrote:
Previously the ConfigurationUtils.setupDBUser() was checking whether the database user already exists by calling findUsers() which may return multiple results or throw an exception if not found. The code has been modified to call getUser() which will return exactly one user or null if not found.
Ticket #920
New patch attached. Removed redundant try-catch block. -- Endi S. Dewata
On 5/1/2014 6:19 PM, Endi Sukma Dewata wrote:
On 4/30/2014 11:12 AM, Endi Sukma Dewata wrote:
Previously the ConfigurationUtils.setupDBUser() was checking whether the database user already exists by calling findUsers() which may return multiple results or throw an exception if not found. The code has been modified to call getUser() which will return exactly one user or null if not found.
Ticket #920
New patch attached. Removed redundant try-catch block.
ACKed by Jack and Ade. Pushed to master. -- Endi S. Dewata
participants (1)
-
Endi Sukma Dewata