Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5425

Meta+G search returns "AJAX error: Internal Server Error"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5 M1
    • 2.2.2, 2.3, 2.4
    • REST
    • None
    • AJAX error Internal Server Error REST JSON search Meta Ctrl control G popup
    • Unknown

    Description

      When using the Meta+G popup search, after typing something to search for and waiting for the dropdown to appear with the results, an alert box pops up with the error message "AJAX error: Internal Server Error".

      This happens whenever the search is expected to return a result.

      Searching for a string of random input (knowing no page exists) works and the dropdown appears saying "Document not found" as expected.

      I have 3 versions of the platform installed. 2.1.1, 2.2.2 and 2.3. The search works fine on 2.1.1, but I get this error in 2.2.2 and 2.3.

      Tracing the AJAX calls with firebug show the request being made for the search is: http://localhost/xwiki/rest/wikis/xwiki/search?scope=name&number=10&media=json&q=WebHome
      With the response containing the following HTML for an error page:
      <html>
      <head>
      <title>Status page</title>
      </head>
      <body>
      <h3>The given array contains null value at position (3)</h3><p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1">here</a>.<br>
      Please continue your visit at our <a href="/">home page</a>.
      </p>
      </body>
      </html>

      Firebug also note that the error was caught at http://localhost/xwiki/resources/js/prototype/prototype.js line 527

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            haydenc2 Hayden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: