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

Case sensitive use in cert info for Mobile Settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.5.17, 3.8.8, 3.9.6, 3.10.3
    • Web Services
    • Linux Centos 7
    • Any
    • MOODLE_310_STABLE, MOODLE_35_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Hide

      A possible solution would be to check if the both key names are present (lowercase and uppercase).

      Show
      A possible solution would be to check if the both key names are present (lowercase and uppercase).
    • Easy
    • Hide
      • Environment Setup and Configuration
        • Moodle 3.4 thru 3.10
        • OS: CentOS 7
        • PHP: 7.2
        • Curl: 7.76.1 city-fan.org

      Enable web services for mobile devices in Moodle

      1. If not already, log into Moodle as an Administrator
      2. Click Home > Site administration > Mobile app > Mobile settings
      3. Activate the checkbox for Enable web services for mobile devices.

      Reproducing and testing the Issue

      1. Login to Moodle as an Administrator.
      2. Click Home > Site administration > Mobile app > Mobile settings
      3. ISSUE: The message "It seems that the HTTPS certificate for the site has expired." will appear but the certificate is not expired. A debug on the variable $cert in the function get_potential_config_issues from the file /admin/tool/mobile/classes/api.php will reveal that the key ['Expire date'] is written with uppercase (Expire Date) and not with lowercase (Expire date) like it appears on the file. This causes the array to return Null and to show the above warning message. A possible solution would be to check if the both key names are present (lowercase and uppercase).

      Let me know if you have any questions.

      Best regards,

      Ovidiu

      •  
      Show
      Environment Setup and Configuration Moodle 3.4 thru 3.10 OS: CentOS 7 PHP: 7.2 Curl: 7.76.1 city-fan.org Enable web services for mobile devices in Moodle If not already, log into Moodle as an Administrator Click  Home  >  Site administration  > Mobile app > Mobile settings Activate the checkbox for Enable web services for mobile devices . Reproducing and testing the Issue Login to Moodle as an Administrator. Click  Home  >  Site administration  > Mobile app > Mobile settings ISSUE :  The message " It seems that the HTTPS certificate for the site has expired. " will appear but the certificate is not expired. A debug on the variable  $cert  in the function get_potential_config_issues from the file /admin/tool/mobile/classes/api.php  will reveal that the key ['Expire date'] is written with uppercase (Expire Date) and not with lowercase (Expire date) like it appears on the file. This causes the array to return Null and to show the above warning message. A possible solution would be to check if the both key names are present (lowercase and uppercase). Let me know if you have any questions. Best regards, Ovidiu  
    • Small

      Moodle returns the warning "It seems that the HTTPS certificate for the site has expired" when activating "Enable web services for mobile devices" in Mobile settings, even if the certificate is not expired. The problems is that the curl is case sensitive and does not find the key ['Expire Date'] because Date is written with uppercase D and Moodle expects lowercase d.

            Unassigned Unassigned
            ovidiumorariu Ovidiu Morariu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified

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