[Geoserver-devel] [jira] (GEOS-5266) Coverage parameters may fail to be properly converted

Andrea Aime created BugGEOS-5266
Coverage parameters may fail to be properly converted

Issue Type:

BugBug

Assignee:

Andrea Aime

Created:

11/Aug/12 10:02 AM

Description:

diff --git a/src/main/src/main/java/org/geoserver/data/util/CoverageUtils.java b/src/main/src/main/java/org/geoserver/data/util/CoverageUtils.java
index 1e444e9..24755a1 100644
--- a/src/main/src/main/java/org/geoserver/data/util/CoverageUtils.java
+++ b/src/main/src/main/java/org/geoserver/data/util/CoverageUtils.java
@@ -325,7 +325,7 @@ public class CoverageUtils {
                     value = params.get(key);
                 }
             } else {
-                final Class<? extends Object> target = param.getClass();
+                final Class<? extends Object> target = param.getDescriptor().getValueClass();
                 if (key.equalsIgnoreCase("InputTransparentColor")
                         || key.equalsIgnoreCase("OutputTransparentColor")) {
                     if (params.get(key) != null) {

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Andrea Aime

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)