rwth-acis / moodle-data-proxy

3 stars 1 forks source link

[BUG] Exception when submitting an assignment #42

Closed pdolif closed 3 years ago

pdolif commented 3 years ago
  1. Summary - The proxy throws an exception when an assignment got submitted.
  2. Bug Details
    1. What? - JSONException: JSONObject["gradedategraded"] is not a long.
    2. Where? - MoodleStatementGenerator.java line 177 (https://github.com/rwth-acis/moodle-data-proxy/blob/master/src/main/i5/las2peer/services/moodleDataProxyService/moodleData/MoodleStatementGenerator.java#L177)
    3. When?/How often? - When a new assignment got submitted.
    4. How?/Current state
  3. Fixed state - Assignment submission statements are working properly.
pdolif commented 3 years ago

A possible fix: https://github.com/rwth-acis/moodle-data-proxy/commit/883504bcd254aa5a309d2f7efd0185aa4830e102

Please note: This still needs some more investigation and testing to verify that this is indeed working correctly now.

pdolif commented 3 years ago

It might be the case, that "gradedatesubmitted" gets null after "gradedategraded" got set.