Nestor Oviedo created DS-1210:
---------------------------------
Summary: 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, 3.0
Reporter: Nestor Oviedo
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:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel