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

Portfolio export of files embedded in subfolders

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.2
    • Fix Version/s: None
    • Component/s: Portfolio
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      While writing unit-tests for MDL-45256, I discovered a bug in portfolio_rewrite_pluginfile_url_callback().

      If a file is stored in a subfolder within the filearea, it's not found by this method. If its path is, say, /media/images/static/photo.png then the function throws "Couldn't find a file from the embedded path info ..." and it expects the file path is / and the filename is media/images/static/photo.png

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mudrd8mz David Mudrák (@mudrd8mz)
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: