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

Selected files from the Google Drive repository contain the original extension in the filename

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prerequisites

      1. Google Drive account and create one Google document file test.gdoc in 'My drive' for the purpose of this test.
      2. In the Google account create new API service with credentials. (https://docs.moodle.org/310/en/OAuth_2_Google_service)
      3. As admin, create new Google OAuth2 service (Site administration > Server > OAuth 2 services) and configure it using the credentials that were generated earlier.
      4. Enable the Google Drive repository (Site administration > Plugin > Repositories > Manage Repositories) and set 'OAuth 2 service' to the previously created Google OAuth2 service.
        Leave the other settings to their defaults (make sure that 'Default document import format' is set to 'rtf').

      Test

      1. Login as Admin.
      2. Go to 'Private files'.
      3. Click on the 'Add...' button in the filemanager.
      4. Select the Google Drive repository and login to your account.
      5. Go to 'My drive'
      6. Click on the gdoc file and select it.
      7. The file should appear in the 'Private files' area
        • verify that the name of the file is "test.rtf"
      Show
      Prerequisites Google Drive account and create one Google document file test.gdoc in ' My drive ' for the purpose of this test. In the Google account create new API service with credentials. ( https://docs.moodle.org/310/en/OAuth_2_Google_service ) As admin, create new Google OAuth2 service (Site administration > Server > OAuth 2 services) and configure it using the credentials that were generated earlier. Enable the Google Drive repository (Site administration > Plugin > Repositories > Manage Repositories) and set 'OAuth 2 service ' to the previously created Google OAuth2 service. Leave the other settings to their defaults (make sure that ' Default document import format ' is set to ' rtf '). Test Login as Admin. Go to 'Private files'. Click on the 'Add...' button in the filemanager. Select the Google Drive repository and login to your account. Go to 'My drive' Click on the gdoc file and select it. The file should appear in the 'Private files' area verify that the name of the file is "test.rtf"
    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-71470-311
    • Pull Master Branch:
      MDL-71470-master
    • Sprint:
      QA blitz

      Description

      After selecting a file from the Google Drive repository, the file should have the configured default import format as an extension. This works as expected, however the original extension is still present in the filename.

      Steps to reproduce:

      1. Make sure you have a Google Drive account which contains at least several files.
      2. Login as Admin.
      3. Configure a OAuth 2 Google service and enable the Google Drive repository (default settings).
      4. Log in as Admin.
      5. Go to 'Private files'
      6. Try adding a gdoc file from the Google Drive repository to the 'Private files' area.

      Expected:

      The name of the added file should be somefilename.rtf (default document import format)

      Actual:

      The name of the added file is somefilename.gdoc.rtf

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Geshoski Mihail Geshoski
              Reporter:
              Geshoski Mihail Geshoski
              Peer reviewer:
              Mathew May Mathew May
              Integrator:
              Adrian Greeve Adrian Greeve
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m