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

Badge failure messages not good enough to debug backpack problems (backport of MDL-77086 & MDL-77842)

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-78572_401
    • Hide

      [These are adapted from MDL-77842, because the error displayed there was fixed]

      Requirements:

      1. Run your site with public access and HTTPS (use ngrok or similar).
      2. One account set up on https://badgr.com/

      Testing scenario:

      1. Login as admin
      2. Go to "Site administration > Server > OAuth 2 services"
      3. Create an "Open Badges" service with the following information:
      4. Go to "Site administration > Badges > Manage backpacks"
      5. Create a new backpack with the following information:
      6. Create a badge, publish it and award it to the admin user.
      7. Go to the user preferences page.
      8. Access to "Backpack settings".
      9. Select "https://badgr.com" from the list and connect using a valid user account in Badgr.com. 
      10. Go to the user profile page and access the badge you've been awarded.
      11. Click the "Add to backpack" button.
      12. Check the following text is displayed: Can't export the badge "xxxxx" to backpack (where xxxxx is the badge name).
      13. Check the following error is displayed: Error: VERIFY_RECIPIENT_IDENTIFIERThe recipient does not match any of your verified emails.
      Show
      [These are adapted from MDL-77842, because the error displayed there was fixed] Requirements: Run your site with public access and HTTPS (use ngrok or similar). One account set up on https://badgr.com/ .  Testing scenario: Login as admin Go to "Site administration > Server > OAuth 2 services" Create an "Open Badges" service with the following information: Name: Badgr Service base URL: https://badgr.com/ Go to "Site administration > Badges > Manage backpacks" Create a new backpack with the following information: Backpack API: https://badgr.com Backpack URL: https://badgr.com API version supported: Open Badges v2.1 OAuth 2 services: Badgr Create a badge, publish it and award it to the admin user. Go to the user preferences page. Access to "Backpack settings". Select "https://badgr.com" from the list and connect using a valid user account in Badgr.com.  Go to the user profile page and access the badge you've been awarded. Click the "Add to backpack" button. Check the following text is displayed: Can't export the badge "xxxxx" to backpack (where xxxxx is the badge name). Check the following error is displayed: Error: VERIFY_RECIPIENT_IDENTIFIERThe recipient does not match any of your verified emails.

      See https://moodle.org/mod/forum/discuss.php?d=447917.

      We can't work out why exporting to Badgr from our Moodle 4.1 site is failing, becuase the key error information is just thrown away, rather than being report.

      This has been fixed in master, in MDL-77086 and MDL-77842, and clearly that should have gone onto all branches, so creating the required backport request.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 55 minutes
                1h 55m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.