-
Task
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
Brown Dog - April/May
Using the following curl command I can put invalid data in the softwareserver which puts it in an invalid state and will prevent it from responding to any new commands. This could be due to the fact that it picks up a message, catch an exception, but not acknowledge the message.
curl -X POST -H 'Authorization: token' -H 'Accept: text/plain' -d 'file=@/Users/kooper/Pictures/google2.png' https://bd-api-dev.ncsa.illinois.edu/dap/convert/jpg
|
Following is the error message in the logs:
[Thu May 04 18:16:25 2017] [rabbitm] [205634951]: Consuming job-205634951, ?file=@/Users/kooper/Pictures/google2.png->jpg via ImageMagick
|
[Thu May 04 18:16:25 2017] [rabbitm] [205634951]: API call, http://localhost:8182/software/ImageMagick/convert/jpg/%3Ffile%3D%40%2FUsers%2Fkooper%2FPictures%2Fgoogle2.png
|
[Thu May 04 18:16:25 2017] [restlet] [58]: Setting session to session-58, result will be at [94mhttp://172.17.0.2:8182/file/58_google2.jpg[0m
|
[Thu May 04 18:16:25 2017] [restlet] [58]: Downloading [94m?file=@/Users/kooper/Pictures/google2.png[0m (0 B) ...
|
Exception in thread "Thread-200" java.lang.ArrayIndexOutOfBoundsException: 1
|
at edu.illinois.ncsa.isda.softwareserver.SoftwareServerRestlet.executeTask(SoftwareServerRestlet.java:337)
|
at edu.illinois.ncsa.isda.softwareserver.SoftwareServerRestlet$1.run(SoftwareServerRestlet.java:452)
|
- is related to
-
POL-186 when conversion has exception, softwareserver will reject this request and push this request to error.polyglot rabbitmq
- To Do