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

Maintain support for legacy references stored in repository_nextcloud

    XMLWordPrintable

    Details

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

      Nothing to test IMO, because we are just adding something back in that was there before. In theory though:

      1. Install and configure repository_owncloud FROM https://github.com/learnweb/moodle-repository_owncloud/pull/42.
      2. Add a resource and create an "alias/shortcut" link to a repository_owncloud file.
      3. Perform the migration to repository_nextcloud: Go to {{Site Administration > Plugins > Repositories > ownCloud > Start migration }} and confirm.
      4. Access the resource and check that the redirect still succeeds.
      Show
      Nothing to test IMO, because we are just adding something back in that was there before. In theory though: Install and configure repository_owncloud FROM https://github.com/learnweb/moodle-repository_owncloud/pull/42 . Add a resource and create an "alias/shortcut" link to a repository_owncloud file. Perform the migration to repository_nextcloud: Go to {{Site Administration > Plugins > Repositories > ownCloud > Start migration }} and confirm. Access the resource and check that the redirect still succeeds.
    • Affected Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      MDL-637xx-master

      Description

      I am very glad to see that our repository_nextcloud is now part of Moodle. As a result, this is now the immediate successor to repository_owncloud; the old plugin will not be maintained anymore (at least not for 3.6+). Instead, I will recommend users to migrate to the new plugin. There will be scripts that help with this. But:

      The old repository enabled to "link" to files via a public share. Since we could only do this by abusing a Moodle feature, this mechanism was dropped during the integration into Moodle. As a consequences, there will be a number of Moodle instances that still have these links in the mdl_files_reference. These links cannot be migrated automatically, because there is no standard repository that we could hand these links over to. The new repository_nextcloud does not provide support either, as that was dropped here: https://github.com/moodle/moodle/commit/e8da9f7fdfdc94c1091c1237c18f1cf20da3788f#diff-e9102b57ea5a84e09d84ce499b37d6c5L431. Manual migration is also impossible, because the administrator is unable to change these references to something meaningful. It is also not an option to just stick with the old plugin, because it will not be maintained for M3.6 and above.

      I think it would be best to add support for these legacy links back in. The change is short and the implications are minimal.

      Cheers

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jan.dagefoerde Jan Dageförde
                Reporter:
                jan.dagefoerde Jan Dageförde
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                9 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: