Heigvd / Wegas

A Web Game Authoring System coded in Java and Javascript for rapid development of serious games without programming skills.
https://wegas.albasim.ch
MIT License
28 stars 15 forks source link

Checkbox Question bad request on answer #1892

Closed xgo-work closed 1 year ago

xgo-work commented 1 year ago

Happens in MIMMS 0.1 in METHANE self evaluation, when clicking on validate

(does not happen in the UnPeuDeReact question tests)

XHRPOSThttps://dev.albasim.ch/rest/Editor/GameModel/1953/VariableDescriptor/QuestionDescriptor/ValidateQuestion/355037/Player/354975 [HTTP/2 400 Bad Request 108ms]

{"@class":"ManagedResponse","deletedEntities":[],"updatedEntities":[],"events":[{"@class":"ExceptionEvent","exceptions":[{"@class":"WegasScriptException","script":"function(e) {\n \"use strict\";\n var message = QuestionFacade.buildReplyValidateMessage(self, e, I18n, config || {});\n\n if (message) {\n if (typeof inboxNameOrCb === \"function\") {\n inboxNameOrCb(message, e);\n } else {\n //sendDatedMessage(self, from, date, subject, body)\n Variable.find(gameModel, inboxNameOrCb).sendMessage(self, message);\n }\n }\n }","lineNumber":null,"message":null,"localizedMessage":null}]}]}

TehAwol commented 1 year ago

Fixed by @maxencelaurent, related to the games server scripts trying to use unexisting variable (i.e. phaseMSG).