[Geoserver-devel] [jira] (GEOS-6604) WMS GetFeatureInfo using 'vendorParams: propertyName' does not working after upgrade to 2.5.x

Nesh Peshitz created an issue

GeoServer / BugGEOS-6604

WMS GetFeatureInfo using ‘vendorParams: propertyName’ does not working after upgrade to 2.5.x

Issue Type:

BugBug

Affects Versions:

2.5.2

Assignee:

Andrea Aime

Components:

WMS

Created:

11/Aug/14 2:45 AM

Environment:

GeoServer 2.5.2 (stable version web archive download) and Apache Tomcat/7.0.41 on a Windows 7 x64, JVM 1.7.0_25-b17

Priority:

MajorMajor

Reporter:

Nesh Peshitz

After upgrade from 2.3.4 to GeoServer 2.5.2 GetFeatureInfo request in my web site behaves different.
I am using “vendorParams” to filter layers and their attributes because I dont want to show all fields of a table in a popup when they made a query.

Code:

new OpenLayers.Control.WMSGetFeatureInfo(
{
url: “http://localhost/geoserver/waterworks/wms”,
title: ‘Identify’,
layers: [water, waterconnections],
vendorParams:

{propertyName:[‘STREET’, ‘MATERIAL’, ‘DN’, ‘HOUSE_NO’, ‘CUSTOMER’, ‘CODE’, ‘SOURCE’]}

,

With GeoServer 2.3.4 if I run a WMS getFeatureInfo request using code above it works like it should - it shows only desired attributes which are mentioned in “vendorParams” and only from 2 layers i have stated in “layers”.

But, after upgrade to 2.5.2, it looks like that you cannot put attributes from more than 1 layer because it returns

“Internal error occurred PropertyDescriptor is null - did you request a property that does not exist?”

So, if I leave only one layer in “layers” and its attributes in “vendorParams” it works, but if you put more than one then throws an error.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo