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

XML-RPC webservices should not require debug level to return exception messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.3.7, 2.4, 2.5, 2.6
    • Web Services
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-40330-m26
    • Hide
      1. Checkout dev branch
      2. Download the attached PHP-XMLRPC.zip test client and unzip it into Moodle root directory
      3. Install and configure Moodle (admin user, site ...)
      4. Enable web services - see: Using web services
      5. Create a new external webservice adding all core Moodle web services
      6. Create a token for new external webservice for admin user
      7. In another browser window (tab) navigate to: yoursite/PHP-XMLRPC/client.php
      8. Enter the following:
        Token: use the token created above
        URL: use your site's base URL
        Method: core_user_delete_users
        Data: {"userids":[0]}
        and submit the query ...
      9. Received data should be (something like):

        array(2) {
          ["faultCode"]=>
          int(28194976)
          ["faultString"]=>
          string(55) "Calling parameters do not match signature | ERRORCODE: "
        }
        

      Show
      Checkout dev branch Download the attached PHP-XMLRPC.zip test client and unzip it into Moodle root directory Install and configure Moodle (admin user, site ...) Enable web services - see: Using web services Create a new external webservice adding all core Moodle web services Create a token for new external webservice for admin user In another browser window (tab) navigate to: yoursite/PHP-XMLRPC/client.php Enter the following: Token : use the token created above URL : use your site's base URL Method : core_user_delete_users Data : {"userids":[0]} and submit the query ... Received data should be (something like): array(2) { ["faultCode"]=> int(28194976) ["faultString"]=> string(55) "Calling parameters do not match signature | ERRORCODE: " }

      XML-RPC webservices should not require debug level to return exception messages - currently checks debugging() true to return exception messages.
      This doesn't appear to happen with REST & AMF protocols (check SOAP & double-check other protocols)

      Without debbugging enabled all XML-RPC webservice errors simply return:

      array(2) {
        ["faultCode"]=>
        int(404)
        ["faultString"]=>
        string(13) "Unknown error"
      }
      

            Unassigned Unassigned
            brentboghosian Brent Boghosian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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