Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name Search fails when there are two spaces instead of one #2990

Closed
1 task done
chrismcgrath opened this issue May 15, 2018 · 5 comments
Closed
1 task done

Name Search fails when there are two spaces instead of one #2990

chrismcgrath opened this issue May 15, 2018 · 5 comments
Labels
Fixed in v16.1 Topic: Rock Internals Related to internal core stuff. Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@chrismcgrath
Copy link
Contributor

chrismcgrath commented May 15, 2018

Prerequisites

Description

When a First or Last name has two spaces where there should be one, searching by Name and clicking on the tooltip that pops up fails to find the person.

Steps to Reproduce

  1. Create a person with a last name like "John Smith[space][space]Jones"
  2. Use the Name search and search for John Smith
  3. Click the John Smith Jones tooltip

Expected behavior:

Should go directly to the person's profile (or to a search results with all the available results if more than one person with that name exists).

Actual behavior:

No results are found because the search parameter in the url only has one space character where there should be two.

Versions

  • Rock Version: Rock McKinley 7.3 (1.7.3.55)
  • Client Culture Setting: en-US
@cabal95 cabal95 added Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Priority: Low Affects a small number of Rock installations and will not be noticed by most users. Topic: Rock Internals Related to internal core stuff. labels May 15, 2018
@jonedmiston
Copy link
Member

@chrismcgrath would you be comfortable with us ensuring the last names (and first names) don't have more than one space between parts?

@cabal95
Copy link
Member

cabal95 commented May 15, 2018

Confirmed. Just to add a little more clarity (step one was a bit unclear). I created a person with First Name = Daniel and Last Name = Hazel<space space>Baker.

If I search for Dan Hazel and hit enter, I go to the search results page and can see the target person (this works).

If I search for Dan Hazel and click the matched name in the drop down to take that full name, it does not work.

For reference, if the last name is Hazel<space>ba<space>ker the search works as expected. I would suspect that somewhere it's doing a string split by and then joining them back, thus losing the extra space.

@jonedmiston jonedmiston added the Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. label Aug 3, 2018
@jonedmiston
Copy link
Member

Would an acceptable fix for this be to:
1.) Update the person save to convert double spaces to single spaces
2.) Update the clean-up job to do the same.

Seems like this is a case of 'bad data' so it would be best to keep it from occurring.

@jonedmiston jonedmiston self-assigned this Oct 20, 2019
@chrismcgrath
Copy link
Contributor Author

Seems reasonable to me!

@jonedmiston
Copy link
Member

Solution:

Would an acceptable fix for this be to:
1.) Update the person save to convert double spaces to single spaces
2.) Update the clean-up job to do the same.

@jonedmiston jonedmiston added the Status: Available The core team has made this available for the community to fix. (was: Status: Available) label Oct 21, 2019
@sparkdevnetwork-service sparkdevnetwork-service added the Type: Bug Confirmed bugs or reports that are very likely to be bugs. label Apr 2, 2021
@jonedmiston jonedmiston removed their assignment Jun 27, 2023
@jonedmiston jonedmiston added Fixed in v16.1 and removed Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Status: Available The core team has made this available for the community to fix. (was: Status: Available) Priority: Low Affects a small number of Rock installations and will not be noticed by most users. labels Sep 12, 2023
jonedmiston added a commit that referenced this issue Sep 12, 2023
…s will be corrected when a person is saved as well as by the nightly clean-up job. Processing the nightly clean-up step takes ~1,400 ms on a very large database. (Fixes #2990)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in v16.1 Topic: Rock Internals Related to internal core stuff. Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

5 participants