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

Dropbox repository requires log on to work - which fails

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MDL-70268-39-2
    • MDL-70268-311-2
    • MDL-70268-master-2
    • Hide

      Prerequisites:

      1. ngrok, and to adjust your config.php to use the SSL host, and to set $CFG->sslproxy = true;
      2. A dropbox account
      3. Atleast one image file in the account
      4. 2 Dropbox apps. Follow this guide as a reference using the ngrok address for the callback
        1. Dropbox app 1 - Full dropbox - A legacy 'Full dropbox' app
        2. Dropbox app 2 - Scoped app
      5. In the dropbox site, check both apps should have at least the following scopes assigned (under Permissions tab):
        1. account_info.read
        2. files.metadata.read
        3. files.content.read
        4. sharing.read
        5. sharing.write

      NOTE: The legacy app would have permissions set already and wouldn't require modification.

      Testing instructions (Using Dropbox repository doc as a guide)

      Full dropbox app - Skip this test if you don't have a legacy app

      1. Log in as an admin
      2. Setup the dropbox repository as defined in the moddle docs with DropboxApp1
      3. Go to Private files and click on the 'Add' icon
      4. Select 'Dropbox' and login with your dropbox account
      5. Confirm you are allowed to do the following:
        1. Login to your account
        2. List files in your dropbox
        3. Search for files in the dropbox
        4. View the thumbnail of the image file in the popup that comes up after clicking on the image file
        5. Add file/link to your private file repo and save

      Scoped App

      1. Repeat steps #1 - #5 with DropboxApp2
      Show
      Prerequisites: ngrok, and to adjust your config.php to use the SSL host, and to set $CFG->sslproxy = true; A dropbox account Atleast one image file in the account 2 Dropbox apps. Follow this guide as a reference using the ngrok address for the callback Dropbox app 1 - Full dropbox - A legacy 'Full dropbox' app Dropbox app 2 - Scoped app In the dropbox site, check both apps should have at least the following scopes assigned (under Permissions tab): account_info.read files.metadata.read files.content.read sharing.read sharing.write NOTE: The legacy app would have permissions set already and wouldn't require modification. Testing instructions (Using Dropbox repository doc as a guide) Full dropbox app - Skip this test if you don't have a legacy app Log in as an admin Setup the dropbox repository as defined in the moddle docs with DropboxApp1 Go to Private files and click on the 'Add' icon Select 'Dropbox' and login with your dropbox account Confirm you are allowed to do the following: Login to your account List files in your dropbox Search for files in the dropbox View the thumbnail of the image file in the popup that comes up after clicking on the image file Add file/link to your private file repo and save Scoped App Repeat steps #1 - #5 with DropboxApp2
    • 5
    • 4.0 holding pattern 11, 4.0 holding pattern 12

    Description

      Accessing a dropbox repository provides a button to log into the account.  Clicking on the button produces a pop-up which contains the text:

      Error (400)

      It seems the app you were using submitted a bad request. If you would like to report this error to the app's developer, include the information below.

      More details for developers

      No scope requested can be granted for this app.

      I followed normal instructions to create an API/Key on the Dropbox Developer site as per Moodle docs.

      This was raised by a client on 3.6.10 and I have also tested on 3.9.3 with the same issue.

      Someone else has already raised this with the Dropbox support and the discussion is here - https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropnbox-for-Moodle/td-p/469782

      {{}}

      Attachments

        Issue Links

          Activity

            People

              peterdias Peter Dias
              derick-eld Derick Turner
              Mathew May Mathew May
              Andrew Lyons Andrew Lyons
              Janelle Barcega Janelle Barcega
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Mar/21

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours, 10 minutes
                  2d 4h 10m