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
69c1f5b4
Commit
69c1f5b4
authored
Dec 01, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
An unchecked checkbox results in no param value. Don't use a default value in that case!
parent
db472de5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
connection-settings-socket-c2s.jsp
src/web/connection-settings-socket-c2s.jsp
+6
-6
connection-settings-socket-s2s.jsp
src/web/connection-settings-socket-s2s.jsp
+3
-3
No files found.
src/web/connection-settings-socket-c2s.jsp
View file @
69c1f5b4
...
...
@@ -29,7 +29,7 @@
if
(
update
&&
errors
.
isEmpty
()
)
{
// plaintext
final
boolean
plaintextEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"plaintext-enabled"
,
plaintextConfiguration
.
isEnabled
()
);
final
boolean
plaintextEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"plaintext-enabled"
);
final
int
plaintextTcpPort
=
ParamUtils
.
getIntParameter
(
request
,
"plaintext-tcpPort"
,
plaintextConfiguration
.
getPort
()
);
final
int
plaintextReadBuffer
=
ParamUtils
.
getIntParameter
(
request
,
"plaintext-readBuffer"
,
plaintextConfiguration
.
getMaxBufferSize
()
);
final
String
plaintextTlsPolicyText
=
ParamUtils
.
getParameter
(
request
,
"plaintext-tlspolicy"
,
true
);
...
...
@@ -47,11 +47,11 @@
plaintextMutualAuthentication
=
Connection
.
ClientAuth
.
valueOf
(
plaintextMutualAuthenticationText
);
}
final
int
plaintextListenerMaxThreads
=
ParamUtils
.
getIntParameter
(
request
,
"plaintext-maxThreads"
,
plaintextConfiguration
.
getMaxThreadPoolSize
()
);
final
boolean
plaintextAcceptSelfSignedCertificates
=
ParamUtils
.
getBooleanParameter
(
request
,
"plaintext-accept-self-signed-certificates"
,
plaintextConfiguration
.
isAcceptSelfSignedCertificates
()
);
final
boolean
plaintextVerifyCertificateValidity
=
ParamUtils
.
getBooleanParameter
(
request
,
"plaintext-verify-certificate-validity"
,
plaintextConfiguration
.
isVerifyCertificateValidity
()
);
final
boolean
plaintextAcceptSelfSignedCertificates
=
ParamUtils
.
getBooleanParameter
(
request
,
"plaintext-accept-self-signed-certificates"
);
final
boolean
plaintextVerifyCertificateValidity
=
ParamUtils
.
getBooleanParameter
(
request
,
"plaintext-verify-certificate-validity"
);
// legacymode
final
boolean
legacymodeEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-enabled"
,
legacymodeConfiguration
.
isEnabled
()
);
final
boolean
legacymodeEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-enabled"
);
final
int
legacymodeTcpPort
=
ParamUtils
.
getIntParameter
(
request
,
"legacymode-tcpPort"
,
legacymodeConfiguration
.
getPort
()
);
final
int
legacymodeReadBuffer
=
ParamUtils
.
getIntParameter
(
request
,
"legacymode-readBuffer"
,
legacymodeConfiguration
.
getMaxBufferSize
()
);
final
String
legacymodeMutualAuthenticationText
=
ParamUtils
.
getParameter
(
request
,
"legacymode-mutualauthentication"
,
true
);
...
...
@@ -62,8 +62,8 @@
legacymodeMutualAuthentication
=
Connection
.
ClientAuth
.
valueOf
(
legacymodeMutualAuthenticationText
);
}
final
int
legacymodeListenerMaxThreads
=
ParamUtils
.
getIntParameter
(
request
,
"legacymode-maxThreads"
,
legacymodeConfiguration
.
getMaxThreadPoolSize
()
);
final
boolean
legacymodeAcceptSelfSignedCertificates
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-accept-self-signed-certificates"
,
legacymodeConfiguration
.
isAcceptSelfSignedCertificates
()
);
final
boolean
legacymodeVerifyCertificateValidity
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-verify-certificate-validity"
,
legacymodeConfiguration
.
isVerifyCertificateValidity
()
);
final
boolean
legacymodeAcceptSelfSignedCertificates
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-accept-self-signed-certificates"
);
final
boolean
legacymodeVerifyCertificateValidity
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-verify-certificate-validity"
);
// Apply
final
ConnectionListener
plaintextListener
=
manager
.
getListener
(
connectionType
,
false
);
...
...
src/web/connection-settings-socket-s2s.jsp
View file @
69c1f5b4
...
...
@@ -61,13 +61,13 @@
// final int plaintextListenerMaxThreads = ParamUtils.getIntParameter( request, "plaintext-maxThreads", plaintextConfiguration.getMaxThreadPoolSize() );
// legacymode
final
boolean
legacymodeEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-enabled"
,
legacymodeConfiguration
.
isEnabled
()
);
final
boolean
legacymodeEnabled
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-enabled"
);
final
int
legacymodeTcpPort
=
ParamUtils
.
getIntParameter
(
request
,
"legacymode-tcpPort"
,
legacymodeConfiguration
.
getPort
()
);
final
int
legacymodeReadBuffer
=
ParamUtils
.
getIntParameter
(
request
,
"legacymode-readBuffer"
,
legacymodeConfiguration
.
getMaxBufferSize
()
);
final
String
legacymodeMutualAuthenticationText
=
ParamUtils
.
getParameter
(
request
,
"legacymode-mutualauthentication"
,
true
);
final
Connection
.
ClientAuth
legacymodeMutualAuthentication
;
final
boolean
legacymodeAcceptSelfSignedCertificates
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-accept-self-signed-certificates"
,
legacymodeConfiguration
.
isAcceptSelfSignedCertificates
()
);
final
boolean
legacymodeVerifyCertificateValidity
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-verify-certificate-validity"
,
legacymodeConfiguration
.
isVerifyCertificateValidity
()
);
final
boolean
legacymodeAcceptSelfSignedCertificates
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-accept-self-signed-certificates"
);
final
boolean
legacymodeVerifyCertificateValidity
=
ParamUtils
.
getBooleanParameter
(
request
,
"legacymode-verify-certificate-validity"
);
if
(
legacymodeMutualAuthenticationText
==
null
||
legacymodeMutualAuthenticationText
.
isEmpty
()
)
{
...
...
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