Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
DEMO
spring-boot
Commits
9c82d5c3
Commit
9c82d5c3
authored
Sep 05, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ApplicationContextServerWebExchangeMatcher and subclasses thread-safe
Fixes gh-14161
parent
cafff430
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
EndpointRequest.java
...uate/autoconfigure/security/reactive/EndpointRequest.java
+2
-2
ApplicationContextServerWebExchangeMatcher.java
.../reactive/ApplicationContextServerWebExchangeMatcher.java
+3
-2
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/reactive/EndpointRequest.java
View file @
9c82d5c3
...
...
@@ -125,7 +125,7 @@ public final class EndpointRequest {
private
final
boolean
includeLinks
;
private
ServerWebExchangeMatcher
delegate
;
private
volatile
ServerWebExchangeMatcher
delegate
;
private
EndpointServerWebExchangeMatcher
(
boolean
includeLinks
)
{
this
(
Collections
.
emptyList
(),
Collections
.
emptyList
(),
includeLinks
);
...
...
@@ -246,7 +246,7 @@ public final class EndpointRequest {
public
static
final
class
LinksServerWebExchangeMatcher
extends
ApplicationContextServerWebExchangeMatcher
<
WebEndpointProperties
>
{
private
ServerWebExchangeMatcher
delegate
;
private
volatile
ServerWebExchangeMatcher
delegate
;
private
LinksServerWebExchangeMatcher
()
{
super
(
WebEndpointProperties
.
class
);
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcher.java
View file @
9c82d5c3
...
...
@@ -70,8 +70,9 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
if
(
this
.
context
==
null
)
{
synchronized
(
this
.
contextLock
)
{
if
(
this
.
context
==
null
)
{
this
.
context
=
createContext
(
exchange
);
initialized
(
this
.
context
);
Supplier
<
C
>
createdContext
=
createContext
(
exchange
);
initialized
(
createdContext
);
this
.
context
=
createdContext
;
}
}
}
...
...
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