Skip to content
Snippets Groups Projects

Bugfixes demo

Files

@@ -86,6 +86,7 @@ public class BenchmarkingController {
final var res = new Response();
final var entityContainer = this.entityRepository.findExisting(aid, sid);
final var projectEntity = entityContainer.getEntity();
projectEntity.postProcess();
data.validateAllFields();
final var systemRanking = data.getSystemRanking();
@@ -127,6 +128,7 @@ public class BenchmarkingController {
final @RequestBody BenchmarkingData data) throws IOException {
final var res = new Response();
final var projectEntity = this.entityRepository.findExisting(aid, sid).getEntity();
projectEntity.postProcess();
data.validateMetricAndEntity();
final @Nonnull var metricName = data.getMetricName();
final @Nonnull var entityLevel = data.getEntityLevel();
@@ -167,6 +169,7 @@ public class BenchmarkingController {
final var projectEntity = this.entityRepository.findExisting(aid, sid).getEntity();
data.validateMetricAndEntity();
projectEntity.postProcess();
// Cannot add the reader to the try-with-resources block, as this closes the stream before
// spring can read from the FileReader. Spring closes the reader in the
Loading