Skip to content

Commit

Permalink
SAK-50421 LTI improve handling for non-XML POSTs setting/deleting gra…
Browse files Browse the repository at this point in the history
  • Loading branch information
hornersa authored Aug 26, 2024
1 parent 75b7fbd commit ea800ec
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,17 @@ protected void processOutcome(HttpServletRequest request, HttpServletResponse re
}
} else if ( isDelete ) {
retval = SakaiBLTIUtil.deleteGrade(sourcedid, request, ltiService);
if (retval instanceof String) {
doError(request, response, theMap, "outcome.fail", (String) retval, null);
return;
}
} else {
dGrade = new Double(result_resultscore_textstring);
retval = SakaiBLTIUtil.setGrade(sourcedid, request, ltiService, dGrade, result_resultdata_text);
if (retval instanceof String) {
doError(request, response, theMap, "outcome.fail", (String) retval, null);
return;
}
}
success = true;
theMap.put("/message_response/statusinfo/codemajor", "Success");
Expand Down

0 comments on commit ea800ec

Please sign in to comment.