geosolutions-it/geonetwork-manager — Issue #1: 	Invoking a GNSearchRequest with GNSearchRequest.Param.themeKey returns ALL the metadata
Author: etj
Created: 2012-01-30 23:39:45+00:00
State: open

[issue ported from previous issue tracker]
What steps will reproduce the problem?
1. Use the example "Search and retrieve metadata"
2. Set a GNSearchRequest.Param.themeKey= as request param, instead of GNSearchRequest.Param.any
3. Run the example Vs. you preferred GeoNetwork server.

What is the expected output?
The expected ouput should be a number of results equals to that you would obtain invoking directly /srv/en/xml.search?themeKey=.

What do you see instead?
You can see ALL the metadata that the server has, like the filter by themKey would not been applied at all.

What version of the product are you using? On what operating system?
1.0-SNAPSHOT on Windows Vista.

Please provide any additional information below.
It seems a problem of case sensitivity of the "themeKey" param for POST requests to the service. In fact if you add a custom String param "themekey" the service returns a correct number of results. So, "themekey" is correct, "themeKey" as in the enum is wrong.