Commit bc6c95a2 authored by Greg Thomas's avatar Greg Thomas

Ensure that when un-encrpyting a property the indicator is removed from

security.conf
parent bda40792
...@@ -898,7 +898,7 @@ public class JiveGlobals { ...@@ -898,7 +898,7 @@ public class JiveGlobals {
clearXMLPropertyEncryptionEntry(name); clearXMLPropertyEncryptionEntry(name);
} }
private static void clearXMLPropertyEncryptionEntry(String name) { static void clearXMLPropertyEncryptionEntry(String name) {
if (isSetupMode()) { if (isSetupMode()) {
return; return;
} }
......
...@@ -293,6 +293,9 @@ public class JiveProperties implements Map<String, String> { ...@@ -293,6 +293,9 @@ 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) {
JiveGlobals.clearXMLPropertyEncryptionEntry(key);
}
} }
// Generate event. // Generate event.
...@@ -314,6 +317,9 @@ public class JiveProperties implements Map<String, String> { ...@@ -314,6 +317,9 @@ 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) {
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