Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #43 from admin-ch/feature/PTAPP-1049-m2m-sperre
Browse files Browse the repository at this point in the history
lockdown extended for v1/v2 onset, interceptor log change
  • Loading branch information
Armin-Isenring-Bit authored Mar 19, 2022
2 parents 3de8065 + 04421a0 commit 0afd530
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
protected boolean isUriLocked(LocalDateTime now, String requestUri, List<Endpoint> endpoints) {

String uri = removeTrailingLeading(requestUri, '/');
log.debug("called uri '{}' intercepted by #{}", uri, this.hashCode());
log.debug("intercepting call to uri '{}'", uri);

Optional<Endpoint.FromUntil> result = endpoints.stream()
// check for restrictions on given url
Expand Down
16 changes: 16 additions & 0 deletions src/main/resources/application-lockdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,19 @@ lockdown:
until: 2020-03-23T23:59:59.000Z
-
from: 2022-04-01T00:00:00.000Z
-
uri: v1/onset
applicable:
-
from: 2022-03-22T00:00:00.000Z
until: 2020-03-23T23:59:59.000Z
-
from: 2022-04-01T00:00:00.000Z
-
uri: v2/onset
applicable:
-
from: 2022-03-22T00:00:00.000Z
until: 2020-03-23T23:59:59.000Z
-
from: 2022-04-01T00:00:00.000Z

0 comments on commit 0afd530

Please sign in to comment.