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

Never Accessed user filter does not work correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2, 3.8.5, 3.9.2
    • Fix Version/s: STABLE backlog
    • Component/s: Administration
    • Environment:
      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)
    • Database:
      Microsoft SQL
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-30048-master

      Description

      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.

        Attachments

        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

          Activity

            People

            Assignee:
            danielneis Daniel Neis Araujo
            Reporter:
            scottws Scott Sander
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: