Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.0.5</version>
<version>4.0.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>eu.dissco</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void validateAnnotationEventRequest(AnnotationEventRequest event, boolean
|| event.batchMetadata().getFirst().getSearchParams().isEmpty()) {
var searchParamSize = event.batchMetadata().isEmpty() ? 0
: event.batchMetadata().getFirst().getSearchParams().size();
log.error(
log.warn(
"Invalid annotationRequests event: contains {} annotationRequests (1 expected), {} batch metadata (1 expected), and {} searchParams (min 1)",
event.annotationRequests().size(), event.batchMetadata().size(), searchParamSize);
throw new InvalidAnnotationRequestException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected static Agent getAgent(Authentication authentication, String roleName)
.withOdsGupriLevel(GLOBALLY_UNIQUE_STABLE_PERSISTENT_RESOLVABLE)));
}
else {
log.error("Missing ORCID in token");
log.warn("Missing ORCID in token");
throw new ForbiddenException("Missing ORCID in token");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static AnnotationTargetType fromString(String type) {
if (DIGITAL_MEDIA.getName().equals(type)) {
return DIGITAL_MEDIA;
}
log.error("Invalid annotation target type {}", type);
log.warn("Invalid annotation target type {}", type);
throw new IllegalStateException();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ public JsonApiListResponseWrapper scheduleMass(String id, List<MasJobRequest> ma
String orcid) throws NotFoundException, WebProcessingFailedException {
var digitalMedia = repository.getLatestDigitalMediaObjectById(id);
if (digitalMedia == null) {
log.error("Unable to find media with id {}", id);
log.warn("Unable to find media with id {}", id);
throw new NotFoundException("Media " + id + " not found");
}
var digitalSpecimen = digitalSpecimenRepository.getLatestSpecimenById(getDsDoiFromDmo(digitalMedia));
if (digitalSpecimen == null) {
log.error("Unable to find specimen for media with id {}", id);
log.warn("Unable to find specimen for media with id {}", id);
throw new NotFoundException("Unable to find related specimen for media with id " + id);
}
return masService.scheduleMas(id, masRequests, orcid, MjrTargetType.MEDIA_OBJECT, path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private int getIntParam(String paramName, MultiValueMap<String, String> params,
}
}
catch (NumberFormatException ex) {
log.error("Param: {} cannot be parsed to a number, falling back to default", paramName, ex);
log.warn("Param: {} cannot be parsed to a number, falling back to default", paramName, ex);
return Integer.parseInt(defaultValue);
}
}
Expand Down
Loading