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

Inactivating a (tool_policy) policy puts users into infinite loop upon following login

    XMLWordPrintable

    Details

      Description

      Inactivating a policy that has been created with an initial "Active" status results in users being stuck in an infinite redirect loop upon login.

      This does not affect users created after the policy was made inactive.

      Steps to reproduce:

      1. Login as a non-admin user in one browser
      2. Login as admin in another browser
      3. As admin, create new policy, set it as initially active, save it
      4. As non-admin user, refresh page, see policy request screen, do not accept policy, logout
      5. As admin, make policy inactive
      6. As non-admin, try login in, get stuck in infinite redirection loop

      Expected result: login without having to accept the policy.

      Workaround: if the admin manually accepts the (inactive) policy for the user, that user can now login as expected.

      Tested on 3.6.2 and on master (3.7dev / March 7th 2018).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/19

                Time Tracking

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