Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-73270-master -
Hide
Most of the tests were covered by the newly created PHPUnit.
Manual testing
Initial setup
- Log in as an admin account.
- Turn off mnet_dispatcher_mode in Advanced features.
- Turn off XML-RPC protocol in Administration > Server > Web services > Manage protocols.
Web service
- Navigate to Site administration > Server > Environment.
- Verify that you will not see any warning in the Other checks section that contains "XML-RPC".
- Turn on XML-RPC protocol in Administration > Server > Web services > Manage protocols.
- Verify that you will see a warning message "It has been detected that the XML-RPC Web Service protocol is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP.".
- Navigate to Site administration > Server > Environment.
- Verify that you will see a warning in the Other checks section as below:
- Information: xmlrpc_webservice_usage
- Report: It has been detected that the XML-RPC Web Service protocol is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP.
- Navigate to Site administration > Generals > Notifications.
- Verify that you will see a warning message "It has been detected that the XML-RPC Web Service protocol is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP".
- Turn off XML-RPC protocol in Administration > Server > Web services > Manage protocols for the next testing.
MNet is turned on but no host was setup
Note: This test can be skipped because it was already covered by the newly created PHPUnit and it is complicated to set up Mnet.
- Turn on mnet_dispatcher_mode in Advanced features.
- Navigate to More -> Networking -> Manage Peers.
- Delete all the hosts if any.
- Navigate to Site administration > Server > Environment.
- Verify that you will not see any warning in the Other checks section that contains "XML-RPC".
- Navigate to Site administration > Generals > Notifications.
- Verify that you will not see any warning message for XML-RPC.
MNet is turned on and host was setup
Note: This test can be skipped because it was already covered by the newly created PHPUnit and it is complicated to set up Mnet.
- Setup the MNet as https://docs.moodle.org/311/en/MNet
- Navigate to More -> Networking -> Manage Peers.
- Add an MNet host.
- Navigate to Site administration > Server > Environment.
- Verify that you will see a warning in the Other checks section as below:
- Information: xmlrpc_mnet_usage
- Report: It has been detected that the Moodle Networking is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP.
- Navigate to Site administration > Generals > Notifications.
- Verify that you will see a warning message "It has been detected that the Moodle Networking is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP".
Warning message on the MNet configuration pages
- If you ** skipped the earlier test titled "MNet is turned on but no host was setup", turn on mnet_dispatcher_mode in Advanced features now.
- Verify that you will see a warning message "It has been detected that the Moodle Networking is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP." on the below pages:
- More -> Networking -> Settings.
- More -> Networking -> Manage Peers.
- More -> Networking -> SSO access control.
- More -> Networking -> Remote enrolments client.
- More -> Networking -> XML-RPC hosts.
- More -> Networking -> Profile fields.
Mahara portfolios
Note: This test can be skipped because it was already covered by the newly created PHPUnit and it is complicated to set up Mahara portfolios.
- Navigate to More -> Networking -> Manage Peers.
- Delete all the hosts if any.
- Setup the Mahara portfolios as https://docs.moodle.org/311/en/Mahara_portfolio
- Enable the Mahara Portfolios.
- Navigate to Site administration > Server > Environment.
- Verify that you will see a warning in the Other checks section as below:
- Information: xmlrpc_mahara_usage
- Report: It has been detected that the Mahara ePortfolio is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP.
- Navigate to Site administration > Generals > Notifications.
- Verify that you will see a warning message "It has been detected that the Mahara ePortfolio is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP".
MNet authentication
- Navigate to Plugins -> Manage authentication.
- Click on the 'eye' button to enable MNet authentication.
- Verify that you will see a warning message " It has been detected that the MNet authentication is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. "
- Click on the Settings link of the MNet authentication.
- Verify that you will see a warning message " It has been detected that the MNet authentication is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. "
ShowMost of the tests were covered by the newly created PHPUnit. Manual testing Initial setup Log in as an admin account. Turn off mnet_dispatcher_mode in Advanced features. Turn off XML-RPC protocol in Administration > Server > Web services > Manage protocols. Web service Navigate to Site administration > Server > Environment. Verify that you will not see any warning in the Other checks section that contains "XML-RPC". Turn on XML-RPC protocol in Administration > Server > Web services > Manage protocols. Verify that you will see a warning message "It has been detected that the XML-RPC Web Service protocol is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP.". Navigate to Site administration > Server > Environment. Verify that you will see a warning in the Other checks section as below: Information: xmlrpc_webservice_usage Report: It has been detected that the XML-RPC Web Service protocol is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. Navigate to Site administration > Generals > Notifications. Verify that you will see a warning message "It has been detected that the XML-RPC Web Service protocol is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP". Turn off XML-RPC protocol in Administration > Server > Web services > Manage protocols for the next testing. MNet is turned on but no host was setup Note: This test can be skipped because it was already covered by the newly created PHPUnit and it is complicated to set up Mnet. Turn on mnet_dispatcher_mode in Advanced features. Navigate to More -> Networking -> Manage Peers. Delete all the hosts if any. Navigate to Site administration > Server > Environment. Verify that you will not see any warning in the Other checks section that contains "XML-RPC". Navigate to Site administration > Generals > Notifications. Verify that you will not see any warning message for XML-RPC. MNet is turned on and host was setup Note: This test can be skipped because it was already covered by the newly created PHPUnit and it is complicated to set up Mnet. Setup the MNet as https://docs.moodle.org/311/en/MNet Navigate to More -> Networking -> Manage Peers. Add an MNet host. Navigate to Site administration > Server > Environment. Verify that you will see a warning in the Other checks section as below: Information: xmlrpc_mnet_usage Report: It has been detected that the Moodle Networking is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. Navigate to Site administration > Generals > Notifications. Verify that you will see a warning message "It has been detected that the Moodle Networking is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP". Warning message on the MNet configuration pages If you ** skipped the earlier test titled "MNet is turned on but no host was setup", turn on mnet_dispatcher_mode in Advanced features now. Verify that you will see a warning message "It has been detected that the Moodle Networking is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP." on the below pages: More -> Networking -> Settings. More -> Networking -> Manage Peers. More -> Networking -> SSO access control. More -> Networking -> Remote enrolments client. More -> Networking -> XML-RPC hosts. More -> Networking -> Profile fields. Mahara portfolios Note: This test can be skipped because it was already covered by the newly created PHPUnit and it is complicated to set up Mahara portfolios. Navigate to More -> Networking -> Manage Peers. Delete all the hosts if any. Setup the Mahara portfolios as https://docs.moodle.org/311/en/Mahara_portfolio Enable the Mahara Portfolios. Navigate to Site administration > Server > Environment. Verify that you will see a warning in the Other checks section as below: Information: xmlrpc_mahara_usage Report: It has been detected that the Mahara ePortfolio is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. Navigate to Site administration > Generals > Notifications. Verify that you will see a warning message " It has been detected that the Mahara ePortfolio is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP ". MNet authentication Navigate to Plugins -> Manage authentication. Click on the 'eye' button to enable MNet authentication. Verify that you will see a warning message " It has been detected that the MNet authentication is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. " Click on the Settings link of the MNet authentication. Verify that you will see a warning message " It has been detected that the MNet authentication is enabled on your site. This feature relies on the PHP XML-RPC extension which is no longer maintained by PHP. "
-
1
-
HQ Team International CIH2-215
Description
XMLRPC is in an unsupportable state and we will need to warn users of its impending doom.
We can do so in a selection of places:
- admin/environment.xml
- Warn if xmlrpc webservice protocol is enabled
- Warn if any mnet features are enabled
- on the webservice protocols page
- on the various MNet configuration pages