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

Page webservice/wsdoc.php has missing string [[usercurrentsettings]] in breadcrumb

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as admin.
      2. Go to "Site administration / Plugins / Web services / Manage protocols" and enable 'enablewsdocumentation' in your admin settings.
      3. Go to "Site administration / Users / Permissions / Define roles, edit the role 'Authenticated user' and allow the moodle/webservice:createtoken capability.
      4. Logout.
      5. Login as student s1.
      6. Go to "User menu / Preferences / User account  / Security keys" and click the "Documentation" link.
      7. Verify the breadcrumb path doesn't show  [[usercurrentsettings]].
      8. Verify the breadcrumb path has the same roots as the "User menu / Preferences / User account  / Security keys" page. That's "Dashboard / Preferences / User account / Security keys" , then "Web service documentation".
      9. Verify the page title does say "Web service documentation" with an upper case W.

      Show
      Login as admin. Go to "Site administration / Plugins / Web services / Manage protocols" and enable 'enablewsdocumentation' in your admin settings. Go to "Site administration / Users / Permissions / Define roles, edit the role 'Authenticated user' and allow the moodle/webservice:createtoken capability. Logout. Login as student s1. Go to "User menu / Preferences / User account  / Security keys" and click the "Documentation" link. Verify the breadcrumb path doesn't show  [ [usercurrentsettings] ]. Verify the breadcrumb path has the same roots as the "User menu / Preferences / User account  / Security keys" page. That's "Dashboard / Preferences / User account / Security keys" , then "Web service documentation". Verify the page title does say "Web service documentation" with an upper case W.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull 3.7 Branch:
    • Pull 3.8 Branch:
    • Pull Master Branch:
      MDL-66847-master

      Description

      I was lead to webservice/wsdoc.php by https://docs.moodle.org/dev/Web_services_API_-_Function_List but there's no way a full list of web service API functions but an error "A required parameter (sesskey) was missing" and then if you provide a sesskey (in the URL ?sesskey=XXXXXXX) an error "A required parameter (id) was missing". This has been fixed by amending the https://docs.moodle.org/dev/Web_services_API_-_Function_List page and is no more an issue.

      Additionally in the breadcrumb there's a unresolved string [[usercurrentsettings]] which is nowhere to be found in the sources.

      Steps to reproduce:

      1. As admin, enable 'enablewsdocumentation' in your admin settings
      2. Call webservice/wsdoc.php on your Moodle instance

      WHAT YOU EXPECTED:

      A full list of the activated web service API functions

      WHAT ACTUALLY HAPPENS:

      An error "A required parameter (sesskey) was missing" and then if you provide a sesskey (in the URL ?sesskey=XXXXXXX) an error "A required parameter (sesskey) was missing". And a missing string in the Breadcrumb.

        Attachments

          Activity

            People

            Assignee:
            lucaboesch Luca Bösch
            Reporter:
            lucaboesch Luca Bösch
            Peer reviewer:
            Simey Lameze
            Integrator:
            Sara Arjona (@sarjona)
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Mar/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 35 minutes
                2h 35m