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

In 2.3 Assignments clicking the "Export to portfolio" link generates an exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Assignment, Portfolio
    • Labels:
    • Testing Instructions:
      Hide

      To recreate:
      This test requires the following:

      • Portfolios and the file download and Google Docs portfolio plugins to be enabled for the site
      • A course containing a 2.3 single file assignment and multiple files assignment
      • A Google Docs account for use in testing
      1. Login as a student, access the course and make submissions for each of the two assignments.
      2. For each assignment:
        • click the "Export to portfolio" link,
        • select "File download" from the "Select destination" dropdown,
        • click Next and select "File" from the "Available export formats" dropdown.
        • click Next.

      Expected result:

      • The files are exported successfully.

      Actual result:

      • Moodle throws the exception displayed above.
      Show
      To recreate: This test requires the following: Portfolios and the file download and Google Docs portfolio plugins to be enabled for the site A course containing a 2.3 single file assignment and multiple files assignment A Google Docs account for use in testing Login as a student, access the course and make submissions for each of the two assignments. For each assignment: click the "Export to portfolio" link, select "File download" from the "Select destination" dropdown, click Next and select "File" from the "Available export formats" dropdown. click Next. Expected result: The files are exported successfully. Actual result: Moodle throws the exception displayed above.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      When I try to export to portfolio using the "Export to portfolio" link; Moodle throws the exception:

      Invalid call to get_sha1_file - either single or multifiles must be set
       
      More information about this error
      Debug info:
      Error code: invalidsha1file
      Stack trace:
       
      line 982 of /lib/portfoliolib.php: portfolio_export_exception thrown
      line 239 of /lib/portfolio/exporter.php: call to portfolio_export_rethrow_exception()
      line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      line 268 of /portfolio/add.php: call to portfolio_exporter->process_stage()

      I have tested this with 2.2 and it works fine in both 2.3 file assignment sub-types.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Jun/12