[Mifos-issues] [JIRA Studio] Commented: (MIFOS-4824) Stacktrace thrown if 4 words are entered in the customer search box
[ http://mifosforge.jira.com/browse/MIFOS-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=66006#comment-66006 ] Jakub Sławiński commented on MIFOS-4824: Yes, this exception is thrown from the code added for searching using middle name. Which versions do you like to have the fix in? Only master? > Stacktrace thrown if 4 words are entered in the customer search box > --- > > Key: MIFOS-4824 > URL: http://mifosforge.jira.com/browse/MIFOS-4824 > Project: mifos > Issue Type: Bug >Affects Versions: Release 2.0.2 > Environment: Mifos 2.0.2 >Reporter: Binny Gopinath Sreevas >Assignee: Jakub Sławiński > Labels: LightMF > Fix For: Release G - Iteration 2, Release G > > > If 4 or more words are entered in customer search box, Mifos throws a > stacktrace. > For example, there is a center by the name: "Marala Gayatri Nagar A" > And the full name is entered in the search box. > Stacktrace is shown. > Works with "Marala Gayatri Nagar". > An unhandled error has occurred. Please contact your system administrator. > View stack trace Hide stack trace > java.lang.IndexOutOfBoundsException: Index: 2,Size: 2 > at java.util.SubList.rangeCheck(AbstractList.java:746) > at java.util.SubList.get(AbstractList.java:619) > at > org.mifos.customers.persistence.CustomerPersistence.mainSearch(CustomerPersistence.java:425) > at > org.mifos.customers.persistence.CustomerPersistence.search(CustomerPersistence.java:306) > at > org.mifos.customers.business.service.CustomerBusinessService.search(CustomerBusinessService.java:150) > at > org.mifos.customers.struts.action.CustSearchAction.mainSearch(CustSearchAction.java:239) > at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274) > at > org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) > at > org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:164) > at > org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:195) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.mifos.servlet.filters.MifosAccessLogFilter.doFilter(MifosAccessLogFilter.java:72) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) > at > org.springframework.security.web.FilterChainPro
[Mifos-issues] [JIRA Studio] Commented: (MIFOS-4824) Stacktrace thrown if 4 words are entered in the customer search box
[ http://mifosforge.jira.com/browse/MIFOS-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=66014#comment-66014 ] Binny Gopinath Sreevas commented on MIFOS-4824: --- Only master is fine. Not a critical issue. So any release is ok. - thanks, Binny. > Stacktrace thrown if 4 words are entered in the customer search box > --- > > Key: MIFOS-4824 > URL: http://mifosforge.jira.com/browse/MIFOS-4824 > Project: mifos > Issue Type: Bug >Affects Versions: Release 2.0.2 > Environment: Mifos 2.0.2 >Reporter: Binny Gopinath Sreevas >Assignee: Jakub Sławiński > Labels: LightMF > Fix For: Release G - Iteration 2, Release G > > > If 4 or more words are entered in customer search box, Mifos throws a > stacktrace. > For example, there is a center by the name: "Marala Gayatri Nagar A" > And the full name is entered in the search box. > Stacktrace is shown. > Works with "Marala Gayatri Nagar". > An unhandled error has occurred. Please contact your system administrator. > View stack trace Hide stack trace > java.lang.IndexOutOfBoundsException: Index: 2,Size: 2 > at java.util.SubList.rangeCheck(AbstractList.java:746) > at java.util.SubList.get(AbstractList.java:619) > at > org.mifos.customers.persistence.CustomerPersistence.mainSearch(CustomerPersistence.java:425) > at > org.mifos.customers.persistence.CustomerPersistence.search(CustomerPersistence.java:306) > at > org.mifos.customers.business.service.CustomerBusinessService.search(CustomerBusinessService.java:150) > at > org.mifos.customers.struts.action.CustSearchAction.mainSearch(CustSearchAction.java:239) > at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274) > at > org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) > at > org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:164) > at > org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:195) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.mifos.servlet.filters.MifosAccessLogFilter.doFilter(MifosAccessLogFilter.java:72) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainPr
[Mifos-issues] [JIRA Studio] Commented: (MIFOS-4824) Stacktrace thrown if 4 words are entered in the customer search box
[ http://mifosforge.jira.com/browse/MIFOS-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=65929#comment-65929 ] Binny Gopinath Sreevas commented on MIFOS-4824: --- A related issue - if a center was created with a name "Marla Gayatri" (please note the 2 spaces between the two words). This does not get listed even if we enter the search phrase exactly as "Marla Gayatri". Our logic of splitting the search phrase into words based on spaces kinda causes this issue - is my guess. Would be good to have a search option to show all names containing a string For example, search phrase could be given as "contains:gayatri" Or enclosing a phrase in single or double quotes should cause it to be considered as a single word, for example - 'marla gayatri' > Stacktrace thrown if 4 words are entered in the customer search box > --- > > Key: MIFOS-4824 > URL: http://mifosforge.jira.com/browse/MIFOS-4824 > Project: mifos > Issue Type: Bug >Affects Versions: Release 2.0.2 > Environment: Mifos 2.0.2 >Reporter: Binny Gopinath Sreevas > Labels: LightMF > > If 4 or more words are entered in customer search box, Mifos throws a > stacktrace. > For example, there is a center by the name: "Marala Gayatri Nagar A" > And the full name is entered in the search box. > Stacktrace is shown. > Works with "Marala Gayatri Nagar". > An unhandled error has occurred. Please contact your system administrator. > View stack trace Hide stack trace > java.lang.IndexOutOfBoundsException: Index: 2,Size: 2 > at java.util.SubList.rangeCheck(AbstractList.java:746) > at java.util.SubList.get(AbstractList.java:619) > at > org.mifos.customers.persistence.CustomerPersistence.mainSearch(CustomerPersistence.java:425) > at > org.mifos.customers.persistence.CustomerPersistence.search(CustomerPersistence.java:306) > at > org.mifos.customers.business.service.CustomerBusinessService.search(CustomerBusinessService.java:150) > at > org.mifos.customers.struts.action.CustSearchAction.mainSearch(CustSearchAction.java:239) > at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274) > at > org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) > at > org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:164) > at > org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:195) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.mifos.servlet.filters.MifosAccessLogFilter.doFilter(MifosAccessLogFilter.java:72) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) > at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at > org.springframework.security.web.session.SessionManagementFilt