Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38823

Cannot search for a user by their full name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.x, 2.7.x, 2.8.x
    • Fix Version/s: 2.7.x, 2.8.x
    • Component/s: Kernel
    • Labels:
      None
    • CLE Team Issue:
      Yes
    • Previous Issue Keys:
      KNL-691

      Description

      When searching for users with their full name (Steve Swinsburg) you will find 0 results, even if that user exists. The issue is that the search takes the entire term and applies it to the first and last name fields, but since neither field matches exactly, then it fails.

      To verify, as an admin go to the Admin Workspace and click 'Users'.

      1. Search for 'Sakai'. You should get at least the Sakai Administrator user.
      2. Search for 'Administrator'. You should get at least the Sakai Administrator user.
      3. Search for 'Sakai Administrator'. You will get no results.

      A possible fix could be splitting the search terms on whitespace and then performing multiple searches on all fields with both terms and then combining the results. Although I am not sure how this would fair with people that have spaces in their last name ie 'De Paul', it would probably give some odd results (finding people with De in their first name).

      Maybe a smarter search with search operators? Although that is more complex.

        Gliffy Diagrams

          Zeplin

            Attachments

            1. KNL-691.patch
              1 kB
            2. KNL-691-v2.patch
              2 kB
            3. the patch works.png
              the patch works.png
              25 kB

              Issue Links

                Activity

                  People

                  Assignee:
                  steve.swinsburg Steve Swinsburg
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration