Commit 5156f652 authored by Greg Thomas's avatar Greg Thomas

Be more aggressive over updating security.conf

parent ce19ac9c
...@@ -293,9 +293,8 @@ public class JiveProperties implements Map<String, String> { ...@@ -293,9 +293,8 @@ public class JiveProperties implements Map<String, String> {
result = properties.put(key, value); result = properties.put(key, value);
encrypted.put(key, isEncrypted); encrypted.put(key, isEncrypted);
if(!isEncrypted) { // We now know the database is correct - so we can remove the entry from security.conf
JiveGlobals.clearXMLPropertyEncryptionEntry(key); JiveGlobals.clearXMLPropertyEncryptionEntry(key);
}
} }
// Generate event. // Generate event.
...@@ -317,9 +316,8 @@ public class JiveProperties implements Map<String, String> { ...@@ -317,9 +316,8 @@ public class JiveProperties implements Map<String, String> {
void localPut(String key, String value, boolean isEncrypted) { void localPut(String key, String value, boolean isEncrypted) {
properties.put(key, value); properties.put(key, value);
encrypted.put(key, isEncrypted); encrypted.put(key, isEncrypted);
if (!isEncrypted) { // We now know the database is correct - so we can remove the entry from security.conf
JiveGlobals.clearXMLPropertyEncryptionEntry(key); JiveGlobals.clearXMLPropertyEncryptionEntry(key);
}
// Generate event. // Generate event.
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment