GeoServer

GetFeatureInfo returns text response when the format is not recognize, shouldn't it return an exception instead?

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.3
  • Fix Version/s: 1.6.5
  • Component/s: WMS
  • Labels:
    None
  • Number of attachments :
    0

Description

The following request against sample data:

http://geo.openplans.org:8080/geoserver/wms?bbox=-130,24,-66,50&styles=population&format=jpeg&info_format=application/vnd.ogc.se_xml&request=GetFeatureInfo&layers=topp:states&query_layers=topp:states&width=550&height=250&x=170&y=160

returns a text result, but the format "application/vnd.ogc.se_xml" is not valid, it should be "application/vnd.ogc.gml" instead. Usually OGC services do report a an exception with the proper code the wrong param in the locator. Double check the spec and then fix.

Activity

Hide
Andrea Aime added a comment -

Fixed on 1.6.x and trunk (test added only on trunk)

Show
Andrea Aime added a comment - Fixed on 1.6.x and trunk (test added only on trunk)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: