We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2468571 commit b789bccCopy full SHA for b789bcc
workspace-server/src/main/java/gov/nasa/jpl/aerie/workspace/server/WorkspaceBindings.java
@@ -908,6 +908,15 @@ public void bulkPost(Context context) throws NoSuchWorkspaceException {
908
return;
909
}
910
911
+ // Ensure that the user has specified at least one item to alter
912
+ if(items.isEmpty()) {
913
+ context.status(400).json(new FormattedError(
914
+ "MALFORMED_REQUEST",
915
+ "Cannot process request: at least one item must be specified.",
916
+ Optional.empty()));
917
+ return;
918
+ }
919
+
920
// Ensure that no two inputs will try to write to the same location
921
final var destinationSet = items.stream().map(BulkPostItem::newPath).collect(Collectors.toSet());
922
if(destinationSet.size() != items.size()) {
0 commit comments