Skip to content

Commit

Permalink
## Upgrade api-commons version
Browse files Browse the repository at this point in the history
  • Loading branch information
SrishtiSingh-eu committed Feb 14, 2024
1 parent 8f37d3b commit e416a67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package eu.europeana.fulltext.api.config;

import eu.europeana.api.commons.definitions.vocabulary.Role;
import eu.europeana.api.commons.nosql.service.ApiWriteLockService;
import eu.europeana.api.commons.oauth2.service.impl.EuropeanaClientDetailsService;
import eu.europeana.api.commons.service.authorization.BaseAuthorizationService;
import eu.europeana.fulltext.api.web.Roles;
Expand Down Expand Up @@ -39,6 +40,11 @@ protected String getApiName() {
return appSettings.getAuthorizationApiName();
}

@Override
protected ApiWriteLockService getApiWriteLockService() {
return null;
}

@Override
protected Role getRoleByName(String name) {
return Roles.getRoleByName(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import eu.europeana.api.commons.error.EuropeanaApiErrorResponse;
import eu.europeana.api.commons.error.EuropeanaApiErrorResponse.Builder;
import eu.europeana.api.commons.error.EuropeanaGlobalExceptionHandler;
import eu.europeana.api.commons.web.exception.ApplicationAuthenticationException;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;

import eu.europeana.api.commons.web.exception.EuropeanaGlobalExceptionHandler;
import org.apache.logging.log4j.util.Strings;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<api-commons.version>0.3.16</api-commons.version>
<api-commons.version>0.3.23-SNAPSHOT</api-commons.version>
<!-- upgraded to 2.5.14 as 2.6.x is not compatible with swagger (springfox-swagger-ui)-->
<!-- org.apache.tomcat.embed version 9.0.56 is included uptill 2.6.3 which is vulnerable. See : CVE-2022-23181 -->
<spring-boot.version>2.5.14</spring-boot.version>
Expand Down

0 comments on commit e416a67

Please sign in to comment.