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

Exception when testing mnet client

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.10
    • MNet
    • MOODLE_401_STABLE
    • MDL-81592-404
    • MDL-81592-405
    • MDL-81592-main
    • Hide

      Setup

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

      1. Setup a couple of Moodle sites:
        • site1 running an older version, for example: Moodle 4.4.x (MOODLE_404_STABLE).
        • site2 running the version to be released (main).
      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 Site 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 "Get remote enrolments going" steps, only the "Get user roaming going" ones.

      Testing

      1. Log in as an admin
      2. Enable MNet in Site Administration > General > Advanced features and set "Networking" to On.
      3. Enable "MNet Authentication" in Site Administration > Plugins > Manage authentication
      4. Navigate to admin/mnet/testclient.php
      5. Confirm clicking on your client doesn't throw exception
      Show
      Setup Please note: it's possible that you see some notices during the setup part depending on the debugging levels in your site. You can ignore them as long as the configuration works as expected. Setup a couple of Moodle sites: site1 running an older version, for example: Moodle 4.4.x (MOODLE_404_STABLE). site2 running the version to be released (main). 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 Site 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 "Get remote enrolments going" steps, only the "Get user roaming going" ones. Testing Log in as an admin Enable MNet in Site Administration > General > Advanced features and set "Networking" to On . Enable "MNet Authentication" in Site Administration > Plugins > Manage authentication Navigate to admin/mnet/testclient.php Confirm clicking on your client doesn't throw exception
    • Hide

      Code verified against automated checks.

      Checked MDL-81592 using repository: https://github.com/ilyatregubov/moodle.git

      More information about this report

      Built on: Tue Feb 18 06:28:49 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-81592 using repository: https://github.com/ilyatregubov/moodle.git MOODLE_404_STABLE (0 errors / 0 warnings) [branch: MDL-81592-404 | CI Job ] MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-81592-405 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-81592-main | CI Job ] More information about this report Built on: Tue Feb 18 06:28:49 AM UTC 2025

      1. Add some mnet client like Mahara or whatever
      2. Navigate to admin/mnet/testclient.php
      3. Click on your client
      4. Ovserve exception 

        Unsupported operand types: string + int 

         

            ilyatregubov Ilya Tregubov
            ilyatregubov Ilya Tregubov
            Daniel Ziegenberg Daniel Ziegenberg
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 34 minutes
                34m

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