[ 
https://jira.duraspace.org/browse/DS-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Van de Velde updated DS-1210:
-----------------------------------

    Status: Open  (was: Received)
    
> NullPointerException on /search-filter without field param
> ----------------------------------------------------------
>
>                 Key: DS-1210
>                 URL: https://jira.duraspace.org/browse/DS-1210
>             Project: DSpace
>          Issue Type: Bug
>          Components: Discovery
>    Affects Versions: 1.8.2
>            Reporter: Nestor Oviedo
>            Assignee: Kevin Van de Velde
>              Labels: Discovery, NullPointerException, search-filter
>             Fix For: 3.0
>
>
> When a user issues a request to "/search-filter" without the "field" 
> parameter, a NullPointerException is thrown. This is because the 
> "org.dspace.app.xmlui.aspect.discovery.SearchFacetFilter" class takes this 
> parameter from the request and just uses it, whitout checking if it is null 
> first.
> A possible fix to this would be to add a setup() method to the 
> SearchFacetFilter. This method should check for any param called "field" and 
> throw an exception when there is no parameter with that name. This exception 
> should be handled in the sitemap and a 400 "Bad request" status should be 
> returned to the client.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to