Browse Source

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

block-minter-updates
CalDescent 3 years ago
parent
commit
3303e41a39
  1. 4
      src/main/java/org/qortal/api/resource/ArbitraryResource.java

4
src/main/java/org/qortal/api/resource/ArbitraryResource.java

@ -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

Loading…
Cancel
Save