TSK-1946: fix release job due to missing dependencies

This commit is contained in:
Mustapha Zorgati 2023-01-30 13:24:17 +01:00
parent 131c1f0cb9
commit a5c24e29cc
3 changed files with 7 additions and 2 deletions

View File

@ -349,6 +349,11 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-${{ env.CACHE_MAVEN_NAME }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ env.CACHE_MAVEN_NAME }}
- name: Download taskana artifacts
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
- name: Download taskana-web dist artifact
uses: actions/download-artifact@v3
with:

View File

@ -65,7 +65,7 @@ public class SpringSecurityToJaasFilter extends GenericFilterBean {
if (logger.isDebugEnabled()) {
logger.debug("Attempting to obtainSubject using authentication : " + authentication);
}
if (!authentication.isPresent() || !authentication.get().isAuthenticated()) {
if (authentication.isEmpty() || !authentication.get().isAuthenticated()) {
return Optional.empty();
}

View File

@ -64,7 +64,7 @@ public class SpringSecurityToJaasFilter extends GenericFilterBean {
if (logger.isDebugEnabled()) {
logger.debug("Attempting to obtainSubject using authentication : " + authentication);
}
if (!authentication.isPresent() || !authentication.get().isAuthenticated()) {
if (authentication.isEmpty() || !authentication.get().isAuthenticated()) {
return Optional.empty();
}