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.

Environment

None

Activity

Show:

Greg Thomas 
March 29, 2019 at 12:19 PM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created March 29, 2019 at 12:18 PM
Updated March 29, 2019 at 12:19 PM
Resolved March 29, 2019 at 12:19 PM