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

Display notifications for typical problems that may cause the Mobile app to don't work as expected

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. As admin enable debugdisplay (admin setting)
      2. Go to Plugins -> Manage outputs -> Manage message outputs and disable the Mobile notifications plugin (if it was enabled)
      3. Enable the external database authentication plugin enabling the "Debug ADOdb" option
      4. Enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      5. Check that you see warnings for:
      • Display errors (debugdisplay)
      • ADODb debugging
      • Mobile notifications not enabled
      • You may also see a warning about not using HTTPS if your site does not use a local certificate
      • If you site use a self-signed https certificate you may see additional warnings "It seems that the site certificate is self-signed or not trusted"
      1. You may also modify in the site DB (config table) the setting "userquota", setting as value a numeric higher than the platform maxint (something like 898293482983492834928349234928342983492834). In this case you will see also a user quota warning message.
      Show
      As admin enable debugdisplay (admin setting) Go to Plugins -> Manage outputs -> Manage message outputs and disable the Mobile notifications plugin (if it was enabled) Enable the external database authentication plugin enabling the "Debug ADOdb" option Enable "Mobile services": Site administration ► Mobile app ► Mobile settings Check that you see warnings for: Display errors (debugdisplay) ADODb debugging Mobile notifications not enabled You may also see a warning about not using HTTPS if your site does not use a local certificate If you site use a self-signed https certificate you may see additional warnings "It seems that the site certificate is self-signed or not trusted" You may also modify in the site DB (config table) the setting "userquota", setting as value a numeric higher than the platform maxint (something like 898293482983492834928349234928342983492834). In this case you will see also a user quota warning message.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60365-master

      Description

      Currently when Mobile services are enabled a warning is displayed in Mobile settigns only if https is not enabled.

      But there are several typical errors that may cause the app to doesn't work as expected, we should be displaying warnings for those as well.

      • Invalid https certificate (self-signed, expired, invalid key-chain, weak signature algorithm)
      • Adodb debug enabled (when using enrol or auth plugins for external database)
      • SSO plugins enabled (and mobile app not configured to use SSO)
      • Big integers in userquota, usermaxuploadfilesize (integers > PARAM_INT limit)
      • Debugging and display errors enabled
      • User or course "lang" field pointing to non-existent installed lang pack
      • Course using a non-installed course-format
      • Airnotifier not configured (warning)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17