You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a non-existing SID snapshot timestamp is provided (meaning that it's older than all the known timestamps) return a 400 bad request instead of throwing an exception and returning a 500 error. This way dapla-toolbelt-pseudo can report a meaningful error message to users.
See src/main/java/no/ssb/dlp/pseudo/service/sid/SidMapper.java:
if (availableSnapshotDates.stream().allMatch(requestedSnapshotDate::isBefore)) {
thrownewInvalidSidSnapshotDateException(
String.format("Requested date is of an earlier date than all available SID dates. Valid dates are: %s",
String.join(", ", availableSnapshots.items())));
}