-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
type: enhancementA general enhancementA general enhancement
Milestone
Description
Problem
Health endpoint's cache time to live property is not working when there is a live session (when the user is authenticated using spring security)
This is a similar issue with #13238, however this time, TTL is not working only when there is an user logged in (authenticated)
Environment
Java 1.8
Spring-Boot 2.1.11
Expected Behaviour
Health endpoint's cache time to live property should be standalone, not affected by user being authenticated or not
Step to Reproduce
- ./mvnw spring-boot:run to spin up the application
- First, access localhost:8080/demo/health and keep refresh to see health TTL is working properly. (timestamp should be updated every 10 seconds as cache.time-to-live property is set to 10 seconds)
- Access localhost:8080/demo/test in the browser, login with username: user & password: password
- Then, open the other tab on the browser and access localhost:8080/demo/health
- Timestamp field is updated every time you hit refresh
Sample application
demo.zip
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement