Running setup a second time fails to correctly change encryption key
Description
Details from the PR:
(1) Complete a setup; (2) Change the setup property in the openfire.xml to false and run set up again; (3) Run auto-setup for multiple times; (4) After setup (either above 1 or 2), change encryption key in security.xml; Currently there's no more changes from me.
Problem description (Symptom): (1) Run setup; (2) Change the setup property in the openfire.xml to false and run set up again; (3) Set a different Property Encryption key and go to the next page; Result: In the setup-datasource-standard.jsp page, the db username is displayed as gibberish. You can also see some error messages in the log file, something like "[ERROR] LWCrypto encryp or descrypt failed".
Root cause: The original logic for encryption key update is far from finished.
Details from the PR: