Can't search using composite names

Description

Login to Mifos
try searching using a composite name ex: (George tony john bailey)

Result:
An unhandled error has occurred. Please contact your system administrator.
Hide stack trace
java.lang.IndexOutOfBoundsException: Index: 2,Size: 2
at java.util.SubList.rangeCheck(Unknown Source)
at java.util.SubList.get(Unknown Source)

PS:
I tried to reproduce the bug on
http://ci.mifos.org:8104/mifos/
and i couldn't

But i succeeded reproducing it on
http://demo.mifos.org/mifos/

Environment

None

Activity

Show:
keithwoodlock
May 27, 2011, 12:23 PM

The comments in the code say it all.

'...we support up to 3 words for client search..'

So looks like in f-release only 3 words are support for client search.

Kay Chau
May 27, 2011, 2:07 PM

Is it easy to port what we had in G over to support up to 4? Either that or we should not be showing a stack trace at all - should be an error message that 4 word search is not supported. Supporting 4 is the ideal solution though

Mifos Hudson Jira Plugin User
May 27, 2011, 2:18 PM

Integrated in

head-f-release #178
MIFOS-5024: make change so main search is like head master code in effort to stop search for four names causing out of bounds exception.

Keith Woodlock : 12e8585ca853bf5d5379d6d0e26d6957f6ef2c7d
Files :

  • appdomain/src/main/java/org/mifos/customers/persistence/CustomerPersistence.java

keithwoodlock
May 27, 2011, 3:35 PM

made this the same as it is in head master. ie. no stack trace will appear for any number names with spaces between them. However, client search only supports 3 search terms (in f-release and head/master)

Kay Chau
May 27, 2011, 4:41 PM

i've verified this

Assignee

mifosqa

Reporter

George Lteif

Labels

URL

None

Story Points

None

Team

Core

Scheduled For

Release

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure