Fixed unhandled case in GET /arbitrary/{service}/{name}* endpoints

This commit is contained in:
CalDescent 2022-01-27 18:12:21 +00:00
parent 4e71ae0e59
commit 3303e41a39

View File

@ -1057,6 +1057,10 @@ public class ArbitraryResource {
// This is a single file resource
filepath = files[0];
}
else {
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_CRITERIA,
"filepath is required for resources containing more than one file");
}
}
// TODO: limit file size that can be read into memory