The following is seen in the logs:
Instead, the command should fail with something like: "foo.jar cannot be found".
Uploading something which is not a JAR yields the following:
in the logs, which seems about right. Looks like that exception is being masked by the generic "something went wrong" exception.
The shell should really respond with something like "X is not a JAR".