[Geoserver-devel] Method "GridCoverage2D read(GeneralParameterValue[] params)" is called with incorrect parameters

We are experiencing a possible bug with GeoServer versions 2.2-beta2 and 2.2-RC1.

When viewing a layer published with a prototype NetCDF Reader as raster data source, the user-selected parameter is not being passed to the the overridden AbstractGridCoverage2DReader method “GridCoverage2D read(GeneralParameterValue params)” in newer GeoServer releases. When the read() method is called with GeoServer versions 2.2-beta2 and 2.2-RC1, a default value is passed as a parameter regardless of what value the user has actually given.
For example, if the user supplies the value “salinity” for one index of “params”, and the user is running GeoServer version 2.1.4, then the read() method’s parameter will contain the value “salinity.” However, if the user is running either 2.2-beta2 or 2.2-RC1, then the parameter will contain the default value “water_temp.”

A more detailed description, including steps to reproduce the issue and stacktraces, can be found in the bug report filed at: http://jira.codehaus.org/browse/GEOS-5234

Additionally, the NetCDF Reader repository can be located at: https://github.com/OpenCOP/geoserver-fork/tree/netcdf/src/community/geonetcdf