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

Never Accessed user filter does not work correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.1.2, 3.8.5, 3.9.2
    • Administration
    • OS: Windows Server 2008 R2 Standard SP1
      Web server: IIS7.5
      PHP: 5.3.6 VC9 x86 non-thread-safe
      Driver: Microsoft driver for PHP for SQL Server 2.0.1
      Database server: Microsoft SQL Server 2005 (remote)
    • Microsoft SQL
    • MOODLE_21_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-30048-master
    • Hide

      1. Configure LDAP and import LDAP users.
      2. Log in with a few LDAP user accounts, but make sure there are some that are not logged in.
      3. Create some local Moodle accounts.
      4. Log in with a few local user accounts, but make sure there are some that are not logged in.
      5. Go to the User Accounts section of Moodle.
      6. Attempt to filter by Never Accessed.

      ACTUAL RESULTS:
      The results will contain all LDAP users regardless of whether they have logged in before or not, but it will not contain local users that have logged in.

      EXPECTED RESULTS:
      Both LDAP and local user accounts that have logged in before should be filtered from the results so that only users that have never logged in before are displayed, regardless of user type.

      Show
      1. Configure LDAP and import LDAP users. 2. Log in with a few LDAP user accounts, but make sure there are some that are not logged in. 3. Create some local Moodle accounts. 4. Log in with a few local user accounts, but make sure there are some that are not logged in. 5. Go to the User Accounts section of Moodle. 6. Attempt to filter by Never Accessed. ACTUAL RESULTS: The results will contain all LDAP users regardless of whether they have logged in before or not, but it will not contain local users that have logged in. EXPECTED RESULTS: Both LDAP and local user accounts that have logged in before should be filtered from the results so that only users that have never logged in before are displayed, regardless of user type.

      My database has 5058 users: 1 local account (Admin User) and 5057 LDAP accounts. If I try to filter my user list in Moodle by Never Accessed, it still returns LDAP user accounts that have accessed the system. It does not return the Admin User. It seems that the Never Accessed filter does not work properly for LDAP accounts. Attached screenshots demonstrate the issue.

        1. first-last-access.png
          first-last-access.png
          207 kB
        2. moodle_filter_never_accessed_admin.png
          moodle_filter_never_accessed_admin.png
          20 kB
        3. moodle_filter_never_accessed_scott.png
          moodle_filter_never_accessed_scott.png
          34 kB
        4. moodle_filter_never_accessed_test.pdn
          61 kB
        5. moodle_filter_never_accessed_test.png
          moodle_filter_never_accessed_test.png
          50 kB
        6. never-accessed-1.png
          never-accessed-1.png
          220 kB
        7. never-accessed-2.png
          never-accessed-2.png
          270 kB
        8. never-accessed-3.png
          never-accessed-3.png
          268 kB
        9. never-accessed-4.png
          never-accessed-4.png
          440 kB

            danielneis Daniel Neis Araujo
            scottws Scott Sander
            Jordi Pujol-Ahulló Jordi Pujol-Ahulló
            Andrew Lyons Andrew Lyons
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 1 minute
                2h 1m

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