Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-12799

SearchBean pagination does not check the sanity of the start index

    XMLWordPrintable

Details

    Description

      2008-08-13 09:38:06,153 ERROR [confluence.search.actions.SearchBean] search Error while searching the site!
      – url: /ewi/wiki/dosearchsite.action | userName: bob | action: dosearchsite
      java.lang.IndexOutOfBoundsException: Index: 20
      at java.util.AbstractList.listIterator(AbstractList.java:389)
      at com.atlassian.confluence.search.actions.SearchBean.search(SearchBean.java:95)
      at com.atlassian.confluence.search.actions.SearchBean.search(SearchBean.java:65)
      at com.atlassian.confluence.search.actions.SearchSiteAction.execute(SearchSiteAction.java:131)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55)
      at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)

      Cause: SearchBean:

      ListIterator it = searchResults.listIterator(startIndex);

      We make sure startIndex is >= 0, but we don't make sure it's < searchResults.length

      Attachments

        Activity

          People

            mjensen m@ (Inactive)
            cmiller@atlassian.com Charles Miller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: