Archiva

Error 500 when clicking the Next or Previous icon of the results of a search, if user is trying to search for java classes, packages or methods.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1.2
  • Component/s: Web Interface
  • Labels:
    None
  • Number of attachments :
    1

Description

When user tries to search for java classes, packages or methods.
User types "bytecode:xxx" , the results will display but when user clicks the next or previous icon of the results.
Page will then display

HTTP ERROR: 500

INTERNAL_SERVER_ERROR

RequestURI=/quickSearch.action
Caused by:

java.lang.NullPointerException
at org.apache.maven.archiva.web.action.SearchAction.isEqualToPreviousSearchTerm(SearchAction.java:254)
at org.apache.maven.archiva.web.action.SearchAction.quickSearch(SearchAction.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)

Activity

Hide
Gwen Harold Autencio added a comment -

Attached a patch for the issue, added params searchResultsOnly and completeQueryString in the <ww:url of previous and next icons.

Show
Gwen Harold Autencio added a comment - Attached a patch for the issue, added params searchResultsOnly and completeQueryString in the <ww:url of previous and next icons.
Hide
Maria Odea Ching added a comment -

Patch applied it in 1.1.x branch -r691892.Thanks for the fix Gwen!

Show
Maria Odea Ching added a comment - Patch applied it in 1.1.x branch -r691892.Thanks for the fix Gwen!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: