-
Bug
-
Resolution: Fixed
-
Critical
-
3.5.3
-
MOODLE_35_STABLE
-
MOODLE_36_STABLE
-
MDL-64228-master -
The repository supports controlled links but it does not support or handle the offline parameter used by the Mobile app when requesting a copy of the file to be downloaded as part of a course in the app.
Right now, instead returning a copy of the file, what is being returned is the HTML content of the form used to perform the OAuth authentication to be able to retrieve a file from Nextcloud:
<div style="margin-top: 250px"><div class="mdl-align"><form method="post" action="https://prototype.moodle.net/nextcloud/index.php"><div><input type="submit" value="Log in to your Nextcloud account" id="single_button5bfe533cc39d31" /><input type="hidden" name="client_id" value="lIyrNOFfijhPSuzjoew9Lm6OokZfqByxBnmc43r7QtxYm1VOoalY52M5HrHmXyy7" /><input type="hidden" name="response_type" value="code" /><input type="hidden" name="redirect_uri" value="https://mobilemaster.moodledemo.net/admin/oauth2callback.php" /><input type="hidden" name="state" value="/repository/repository_callback.php?callback=yes&repo_id=10&sesskey=oAbbvq4KKP&reloadparent=true" /><input type="hidden" name="scope" value="openid profile email files ocs" /><input type="hidden" name="sesskey" value="oAbbvq4KKP" /></div></form></div></div>
- Testing discovered
-
MDL-64243 Nextcloud should be able to serve "offline" files like OneDrive or Google Docs integration
-
- Closed
-