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

The assignment subplugin "editpdf" is missing the get_file_areas implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 2.9.6, 3.0.4
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Create an assignment (require one file) with the PDF annotation feedback tool enabled, see (https://docs.moodle.org/30/en/Using_Assignment#Annotating_PDF_files for the required settings)
      2. As a student submit the assignment (submit a pdf file), as a teacher review the submission adding some annotations in the pdf file.
      3. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for the student
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with one of the student users.
        • You need to replace the wstoken, assignid (with the instance id, not the cmid) and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'assignid=32&wsfunction=mod_assign_get_submission_status&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' | python -m "json.tool"

      6. Now, check that in the response you see among other data listed the pdf annotated file, you can download that file appending ?token=USERTOKEN to the file path, and check that the file is downloaded correctly
      7. For the older Moodle versions the only way you can test it is running the unit tests
      Show
      Create an assignment (require one file) with the PDF annotation feedback tool enabled, see ( https://docs.moodle.org/30/en/Using_Assignment#Annotating_PDF_files for the required settings) As a student submit the assignment (submit a pdf file), as a teacher review the submission adding some annotations in the pdf file. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the student Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with one of the student users. You need to replace the wstoken, assignid (with the instance id, not the cmid) and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'assignid=32&wsfunction=mod_assign_get_submission_status&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' | python -m "json.tool" Now, check that in the response you see among other data listed the pdf annotated file, you can download that file appending ?token=USERTOKEN to the file path, and check that the file is downloaded correctly For the older Moodle versions the only way you can test it is running the unit tests
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull from Repository:

      Description

      I noticed that when working on MDL-52924

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Dan Poltawski
              Tester:
              David Monllaó
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/May/16