eclipse-emfcloud / emfcloud-modelserver

Modelserver component
Other
40 stars 21 forks source link

Default format for edit requests are not working anymore for V1 #182

Closed ndoschek closed 1 year ago

ndoschek commented 2 years ago

Previously for V1 there was a default format support for edit requests as well. E.g. send an EMF SetCommand as JSON for SuperBrewer3000.coffee was correctly interpreted. Now this results in an IndexOutOfBoundsException:

2022-03-04 17:34:33,085311000 [JettyServerThreadPool-32] ERROR SingleThreadModelController - Execution Exception
java.util.concurrent.ExecutionException: org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
...

For example, the get model request without explicit format parameter uses the json format.