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

Upgrade phpxmlrpc to the 4.11.1

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • 5.0
    • 4.5
    • Libraries
    • MOODLE_405_STABLE
    • MOODLE_500_STABLE
    • MDL-81669_upgrade-phpxmlrpc
    • Hide

      Instructions copied from MDL-76929.

      Verify lib version

      1. Access to "Site administration / Development / Third party libraries".
      2. Verify third-party lib versions for PhpXmlRpc is 4.11.0

      Testing scenario

      The goal of this test is to ensure that it is possible for Moodle users to connect with another Moodle site using MNet.

      Setup

      Please note: it's possible that you see some notices during the setup part depending of the debugging levels in your site. You can ignore them as far as the configuration works as expected.

      1. Setup a couple of Moodle sites:
        • site1 running older version, for example: Moodle 4.3.x (MOODLE_403_STABLE).
        • site2 running the version to be released (master).
      2. In the file /etc/ssl/openssl.cnf search for the section openssl_init and make the following changes, so this part of the file looks like the following:

        [openssl_init]
        providers = provider_sect
         
        [provider_sect]
        default = default_sect
        legacy = legacy_sect
         
        [default_sect]
        activate = 1
         
        [legacy_sect]
        activate = 1
        

      3. Run the following command and verify it does not throw an error:

        echo -ne "test" | openssl rc4-40 -K 7465737473 -nosalt -e -nopad | xxd
        

      4. Make sure you have basic network connectivity between the two sites.  eg. you can curl/wget the URL for site1 from site2 and vice versa
      5. Make sure that the IP and port of both sites are not blocked. Navigate to: Administration > Security > HTTP security and make sure the site IP and ports are not in "cURL blocked hosts list " and "cURL allowed ports list ". (you can just clear both lists)
      6. Ensure that they have different $CFG->sessioncookiepath settings either on config.php or in Administration > Server > Session handling
      7. In both sites, enable and configure MNet as explained in the doc page.
      8. - Please note: You don't need to configure the "remote enrolments" steps, only the "get users roaming" ones.
      9. Create user1 in site1 and user2 in site2.

      Testing

      1. Log in as user1 in site1 and go to "Site home".
      2. In the "Network servers" block (that has been added as per the configuration instructions, click on site2.
      3. Verify that now you are welcome to site2 as user1.
      4. Log in as user2 in site2 and go to "Site home".
      5. In the "Network servers" block (that has been added as per the configuration instructions, click on site1.
      6. Verify that now you are welcome to site1 as user2.
      7. Verify that now user1 and user2 do exist in both sites and SSO/roaming between them works as expected.
      Show
      Instructions copied from MDL-76929 . Verify lib version Access to "Site administration / Development / Third party libraries". Verify third-party lib versions for PhpXmlRpc is 4.11.0 Testing scenario The goal of this test is to ensure that it is possible for Moodle users to connect with another Moodle site using MNet . Setup Please note: it's possible that you see some notices during the setup part depending of the debugging levels in your site. You can ignore them as far as the configuration works as expected. Setup a couple of Moodle sites: site1 running older version, for example: Moodle 4.3.x (MOODLE_403_STABLE). site2 running the version to be released (master). In the file /etc/ssl/openssl.cnf search for the section openssl_init and make the following changes, so this part of the file looks like the following: [openssl_init] providers = provider_sect   [provider_sect] default = default_sect legacy = legacy_sect   [default_sect] activate = 1   [legacy_sect] activate = 1 Run the following command and verify it does not throw an error: echo -ne "test" | openssl rc4-40 -K 7465737473 -nosalt -e -nopad | xxd Make sure you have basic network connectivity between the two sites.  eg. you can curl/wget the URL for site1 from site2 and vice versa Make sure that the IP and port of both sites are not blocked. Navigate to: Administration > Security > HTTP security and make sure the site IP and ports are not in "cURL blocked hosts list " and "cURL allowed ports list ". (you can just clear both lists) Ensure that they have different $CFG->sessioncookiepath settings either on config.php or in Administration > Server > Session handling In both sites, enable and configure MNet as explained in the doc page. - Please note: You don't need to configure the "remote enrolments" steps, only the "get users roaming" ones. Create user1 in site1 and user2 in site2 . Testing Log in as user1 in site1 and go to "Site home". In the "Network servers" block (that has been added as per the configuration instructions, click on site2 . Verify that now you are welcome to site2 as user1. Log in as user2 in site2 and go to "Site home". In the "Network servers" block (that has been added as per the configuration instructions, click on site1 . Verify that now you are welcome to site1 as user2 . Verify that now user1 and user2 do exist in both sites and SSO/roaming between them works as expected.
    • Hide

      Code verified against automated checks.

      Checked MDL-81669 using repository: https://github.com/ziegenberg/moodle

      More information about this report

      Built on: Tue Mar 4 18:49:00 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-81669 using repository: https://github.com/ziegenberg/moodle main (0 errors / 0 warnings) [branch: MDL-81669_upgrade-phpxmlrpc | CI Job ] More information about this report Built on: Tue Mar 4 18:49:00 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-81669 _upgrade-phpxmlrpc https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18072/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61744/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61745/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61746/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61747/ App tests (stable app version) Built on: Mon Jan 27 10:25:16 AM UTC 2025

      phpxmlrpc phpxmlrpc 4.10.1 --> 4.11.1 https://github.com/gggeek/phpxmlrpc

            Daniel Ziegenberg Daniel Ziegenberg
            sarjona Sara Arjona (@sarjona)
            Stevani Andolo Stevani Andolo
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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