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
4086e48a
Commit
4086e48a
authored
Mar 08, 2018
by
Guus der Kinderen
Committed by
akrherz
Mar 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1505: Prevent admin console stacktrace on TLS config page.
parent
d47c7dc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
security-certificate-store-management.jsp
src/web/security-certificate-store-management.jsp
+15
-17
No files found.
src/web/security-certificate-store-management.jsp
View file @
4086e48a
...
...
@@ -39,18 +39,21 @@
showAll
=
true
;
break
;
}
if
(
trustStoreConfiguration
==
null
)
{
trustStoreConfiguration
=
certificateStoreManager
.
getTrustStoreConfiguration
(
connectionType
);
}
if
(
!
trustStoreConfiguration
.
equals
(
certificateStoreManager
.
getTrustStoreConfiguration
(
connectionType
)
)
)
{
showAll
=
true
;
break
;
}
// Disabled this until we sort out the difference between regular trust stores and the client trust store.
// if ( trustStoreConfiguration == null )
// {
// trustStoreConfiguration = certificateStoreManager.getTrustStoreConfiguration( connectionType );
// }
// if ( !trustStoreConfiguration.equals( certificateStoreManager.getTrustStoreConfiguration( connectionType ) ) )
// {
// showAll = true;
// break;
// }
}
pageContext
.
setAttribute
(
"connectionTypes"
,
showAll
?
ConnectionType
.
values
()
:
"COMBINED"
);
pageContext
.
setAttribute
(
"showAll"
,
showAll
);
pageContext
.
setAttribute
(
"connectionTypes"
,
(
showAll
?
ConnectionType
.
values
()
:
new
ConnectionType
[]
{
ConnectionType
.
SOCKET_C2S
}
));
pageContext
.
setAttribute
(
"certificateStoreManager"
,
certificateStoreManager
);
boolean
update
=
request
.
getParameter
(
"update"
)
!=
null
;
...
...
@@ -151,7 +154,7 @@
<c:set
var=
"title"
>
<c:choose>
<c:when
test=
"
${
connectionType
eq
'COMBINED'
}
"
><fmt:message
key=
"ssl.certificates.store-management.combined-stores.title"
/></c:when>
<c:when
test=
"
${
!
showAll
}
"
><fmt:message
key=
"ssl.certificates.store-management.combined-stores.title"
/></c:when>
<c:when
test=
"
${
connectionType
eq
'SOCKET_C2S'
}
"
><fmt:message
key=
"ssl.certificates.store-management.socket-c2s-stores.title"
/></c:when>
<c:when
test=
"
${
connectionType
eq
'SOCKET_S2S'
}
"
><fmt:message
key=
"ssl.certificates.store-management.socket-s2s-stores.title"
/></c:when>
<c:when
test=
"
${
connectionType
eq
'BOSH_C2S'
}
"
><fmt:message
key=
"ssl.certificates.store-management.bosh-c2s-stores.title"
/></c:when>
...
...
@@ -163,7 +166,7 @@
<c:set
var=
"description"
>
<c:choose>
<c:when
test=
"
${
connectionType
eq
'COMBINED'
}
"
><fmt:message
key=
"ssl.certificates.store-management.combined-stores.info"
/></c:when>
<c:when
test=
"
${
!
showAll
}
"
><fmt:message
key=
"ssl.certificates.store-management.combined-stores.info"
/></c:when>
<c:when
test=
"
${
connectionType
eq
'SOCKET_C2S'
}
"
><fmt:message
key=
"ssl.certificates.store-management.socket-c2s-stores.info"
/></c:when>
<c:when
test=
"
${
connectionType
eq
'SOCKET_S2S'
}
"
><fmt:message
key=
"ssl.certificates.store-management.socket-s2s-stores.info"
/></c:when>
<c:when
test=
"
${
connectionType
eq
'BOSH_C2S'
}
"
><fmt:message
key=
"ssl.certificates.store-management.bosh-c2s-stores.info"
/></c:when>
...
...
@@ -173,11 +176,6 @@
</c:choose>
</c:set>
<!-- All connection types share the same config. Pick an arbitrary one to work with. -->
<c:if
test=
"
${
connectionType
eq
'COMBINED'
}
"
>
<c:set
var=
"connectionType"
>
SOCKET_C2S
</c:set>
</c:if>
<form
action=
"security-certificate-store-management.jsp"
method=
"post"
>
<input
type=
"hidden"
name=
"csrf"
value=
"${csrf}"
>
<input
type=
"hidden"
name=
"connectionType"
value=
"${connectionType}"
/>
...
...
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