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

It is not possible to uninstall repositories

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide

      Test #1: Uninstalling a repository that uses file references
      1. Create a filesystem repository in the site, course, and user context each containing at least 1 image file.
      2. In a course, create a page resource and add a image from each of the three file system repository instances.
      3. Using a tool like PHPmyadmin, explore the DB and record the IDs of the repository instances (mdl_repository, mdl_repository_instances, mdl_repository_instance_config)
      4. Using a tool like PHPmyadmin, explore the DB and record the IDs of the 3 pictures you added to the page resource (mdl_files_reference)
      6. Navigate to Site Administration > Plugins> plugin overview
      7. Click on the uninstall link
      8. Verify that the plugin is uninstalled successfully (Check to make sure that records have been removed from the database. this can be checked by making sure that the ID's you recorded above are no longer present in the database)
      9. Delete the image files from $CFG->dataroot/Repository.
      10. Navigate back to the course and view the page resource. Make sure that all images are displayed properly.

      Test #2 Uninstalling a third-party repository:
      1. In a course, create a page resource and add a image from the wikimedia repository
      2. Navigate to Site Administration > Plugins> plugin overview
      3. Uninstall the wikimedia repository
      4. Verify that the plugin is uninstalled successfully.
      5. Navigate back to the course and verify that the image is still displayed

      Show
      Test #1: Uninstalling a repository that uses file references 1. Create a filesystem repository in the site, course, and user context each containing at least 1 image file. 2. In a course, create a page resource and add a image from each of the three file system repository instances. 3. Using a tool like PHPmyadmin, explore the DB and record the IDs of the repository instances (mdl_repository, mdl_repository_instances, mdl_repository_instance_config) 4. Using a tool like PHPmyadmin, explore the DB and record the IDs of the 3 pictures you added to the page resource (mdl_files_reference) 6. Navigate to Site Administration > Plugins> plugin overview 7. Click on the uninstall link 8. Verify that the plugin is uninstalled successfully (Check to make sure that records have been removed from the database. this can be checked by making sure that the ID's you recorded above are no longer present in the database) 9. Delete the image files from $CFG->dataroot/Repository. 10. Navigate back to the course and view the page resource. Make sure that all images are displayed properly. Test #2 Uninstalling a third-party repository: 1. In a course, create a page resource and add a image from the wikimedia repository 2. Navigate to Site Administration > Plugins> plugin overview 3. Uninstall the wikimedia repository 4. Verify that the plugin is uninstalled successfully. 5. Navigate back to the course and verify that the image is still displayed
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL_45619_m29v5

      Description

      Repositories cannot be uninstalled from Moodle using the Manage Plugins UI. If you install one from the plugins DB, there is no way to uninstall it.

      To reproduce install any repository plugin (For example https://moodle.org/plugins/view.php?plugin=repository_recordaudio) and then navigate to Site Administration > Plugins> plugin overview and there will not be an uninstall link.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sbourget Stephen Bourget
              Reporter:
              sbourget Stephen Bourget
              Peer reviewer:
              John Okely
              Integrator:
              David Monllaó
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15