Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
bc6c95a2
Commit
bc6c95a2
authored
May 08, 2017
by
Greg Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that when un-encrpyting a property the indicator is removed from
security.conf
parent
bda40792
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
JiveGlobals.java
src/java/org/jivesoftware/util/JiveGlobals.java
+1
-1
JiveProperties.java
src/java/org/jivesoftware/util/JiveProperties.java
+6
-0
No files found.
src/java/org/jivesoftware/util/JiveGlobals.java
View file @
bc6c95a2
...
...
@@ -898,7 +898,7 @@ public class JiveGlobals {
clearXMLPropertyEncryptionEntry
(
name
);
}
private
static
void
clearXMLPropertyEncryptionEntry
(
String
name
)
{
static
void
clearXMLPropertyEncryptionEntry
(
String
name
)
{
if
(
isSetupMode
())
{
return
;
}
...
...
src/java/org/jivesoftware/util/JiveProperties.java
View file @
bc6c95a2
...
...
@@ -293,6 +293,9 @@ public class JiveProperties implements Map<String, String> {
result
=
properties
.
put
(
key
,
value
);
encrypted
.
put
(
key
,
isEncrypted
);
if
(!
isEncrypted
)
{
JiveGlobals
.
clearXMLPropertyEncryptionEntry
(
key
);
}
}
// Generate event.
...
...
@@ -314,6 +317,9 @@ public class JiveProperties implements Map<String, String> {
void
localPut
(
String
key
,
String
value
,
boolean
isEncrypted
)
{
properties
.
put
(
key
,
value
);
encrypted
.
put
(
key
,
isEncrypted
);
if
(!
isEncrypted
)
{
JiveGlobals
.
clearXMLPropertyEncryptionEntry
(
key
);
}
// Generate event.
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment