Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64227

Nextcloud documents shared via controlled links that are displayed embedded in a file resource shows the complete site embedded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Repositories
    • Labels:
    • Testing Instructions:
      Hide

      Create a nextcloud oauth2 service and a nextcloud repository. 

      https://demo.nextcloud.com/ is useful for this.

      Create a site wide instance of the nextcloud repository and only enable the "External" files.

      Add a file to the course and choose it from the next cloud repository (a txt file is a good example).

      Edit the file and open the file picker again. Select the nextcloud repository and then press the small "Logout" button in the file picker.

      Go back to the course and view the file. You should see a button like "Login to your Nextcloud account" in an iframe in the course page. The iframe should not contain all the surrounding navigation like breadcrumbs, course header etc - it should only contain the button.

       

      Show
      Create a nextcloud oauth2 service and a nextcloud repository.  https://demo.nextcloud.com/  is useful for this. Create a site wide instance of the nextcloud repository and only enable the "External" files. Add a file to the course and choose it from the next cloud repository (a txt file is a good example). Edit the file and open the file picker again. Select the nextcloud repository and then press the small "Logout" button in the file picker. Go back to the course and view the file. You should see a button like "Login to your Nextcloud account" in an iframe in the course page. The iframe should not contain all the surrounding navigation like breadcrumbs, course header etc - it should only contain the button.  
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-64227-master

      Description

      See the attached image:
      Steps to reproduce

      1. Enable Nextcloud repository integration
      2. Go to a course and create a file resource:
        • Using the file picker, browse the Nextcloud repository and add a file as a "controlled link / link to file"
        • Use the display options to embed the file

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18