Update authorization library
This commit is contained in:
parent
b2375fcdb7
commit
121a72611d
3
pom.xml
3
pom.xml
|
@ -73,10 +73,9 @@
|
|||
<dependency>
|
||||
<groupId>eu.dnetlib</groupId>
|
||||
<artifactId>uoa-authorization-library</artifactId>
|
||||
<version>2.0.1</version>
|
||||
<version>2.0.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
</plugins>
|
||||
|
|
|
@ -33,7 +33,7 @@ public class AdminToolsLibraryExceptionsHandler {
|
|||
response.setErrorMessage(ex.getMessage());
|
||||
response.setErrors(ex.getMessage());
|
||||
response.setStatus(HttpStatus.BAD_REQUEST);
|
||||
log.error("mismatchingContent exception" + response.getErrorCode()+ " "+response.getErrorMessage());
|
||||
log.error("mismatchingContent exception: " + response.getErrorCode()+ " "+response.getErrorMessage());
|
||||
return new ResponseEntity<ExceptionResponse>(response, HttpStatus.BAD_REQUEST);
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ public class AdminToolsLibraryExceptionsHandler {
|
|||
response.setErrorMessage(ex.getMessage());
|
||||
response.setErrors(ex.getMessage());
|
||||
response.setStatus(HttpStatus.NOT_FOUND);
|
||||
log.error("contentNotFound exception" + response.getErrorCode()+ " "+response.getErrorMessage());
|
||||
log.error("contentNotFound exception: " + response.getErrorCode()+ " "+response.getErrorMessage());
|
||||
return new ResponseEntity<ExceptionResponse>(response, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ public class AdminToolsLibraryExceptionsHandler {
|
|||
response.setErrorMessage("Forbidden Exception");
|
||||
response.setErrors(ex.getMessage());
|
||||
response.setStatus(HttpStatus.FORBIDDEN);
|
||||
log.error("forbiddenException exception : "+ ex.getMessage());
|
||||
log.error("forbiddenException exception: "+ ex.getMessage());
|
||||
return new ResponseEntity<ExceptionResponse>(response, HttpStatus.FORBIDDEN);
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class AdminToolsLibraryExceptionsHandler {
|
|||
response.setErrorMessage("DuplicateKey Exception");
|
||||
response.setErrors(ex.getMessage());
|
||||
response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
log.error("duplicateKeyException exception : "+ ex.getMessage());
|
||||
log.error("duplicateKeyException exception: "+ ex.getMessage());
|
||||
return new ResponseEntity<ExceptionResponse>(response, HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue