-
Bug
-
Resolution: Fixed
-
Minor
-
3.2.4, 3.3, 3.4, 3.5
-
MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
wip-
MDL-60161-master-test -
Easy
-
This is related to a fix committed to . In lib/oauthlib.php, line 618, we should check to see if the header is already set before calling $this->setHeader('Accept: application/json'). The API calls were failing on some OAuth systems because of multiple "Accept: application/json" showing up in the header.MDL-59473
I have checked the following API services that Moodle core uses, but none of them have any issue handling duplicate 'Accept: application/json' in the header. The API service we use with our SIS system is handled by Mulesoft. They are giving us this exception, org.mule.api.MessagingException: null (java.lang.ClassCastException). If someone else out there uses Mulesoft, it would be great if you can test this too.
The API services I have checked:
- Box.com
- Google drive
- Dropbox
- Microsoft OneDrive
- is a regression caused by
-
MDL-59473 Poor Validation of Oauth2 Token Response causes a loop of redirections
-
- Closed
-