[Geoserver-devel] [jira] Created: (GEOS-2832) GetFeatureInfo does not return any rows with text/html format

GetFeatureInfo does not return any rows with text/html format
-------------------------------------------------------------

                 Key: GEOS-2832
                 URL: http://jira.codehaus.org/browse/GEOS-2832
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.7.3
         Environment: Geoserver 1.7.3 running on Tomcat 6.01.18 under WIndows 2000. Accessing Postgres database (Postgres version 8.1.4)
            Reporter: Alexander Paul Robin Cooper
            Assignee: Andrea Aime

The GetFeatureInfo request:

http://localhost:8080/geoserver/wms?LAYERS=locations%3AHistoric_traverses&TRANSPARENT=true&WIDTH=550&HEIGHT=550&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A3031&BBOX=-2448242.1875%2C1471289.0625%2C-2340820.3125%2C1578710.9375&X=208&Y=273&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=locations%3AHistoric_traverses&FEATURE_COUNT=50

Returns the following HTML:

<html>
  <head>
    <title>Geoserver GetFeatureInfo output</title>
  </head>
  <style type="text/css">
  table.featureInfo, table.featureInfo td, table.featureInfo th {
    border:1px solid #ddd;
    border-collapse:collapse;
    margin:0;
    padding:0;
    font-size: 90%;
    padding:.2em .1em;
  }
  table.featureInfo th{
      padding:.2em .2em;
    text-transform:uppercase;
    font-weight:bold;
    background:#eee;
  }
  table.featureInfo td{
    background:#fff;
  }
  table.featureInfo tr.odd td{
    background:#eee;
  }
  table.featureInfo caption{
    text-align:left;
    font-size:100%;
    font-weight:bold;
    text-transform:uppercase;
    padding:.2em .2em;
  }
  </style>
  <body>
  
<table class="featureInfo">
  <caption class="featureInfo">Historic_traverses</caption>
  <tr>
  <th>fid</th>
    <th >my_name_space</th>
    <th >externalid</th>
    <th >description</th>
    <th >internalid</th>
    <th >label</th>
    <th >trackid</th>
    <th >locationid</th>
    <th >latitude</th>
    <th >longitude</th>
    <th >method</th>
    <th >relativetoid</th>
    <th >absoluteaccuracy</th>
    <th >relativeaccuracy</th>
    <th >citationid</th>
    <th >person</th>
    <th >my_time_stamp</th>
    <th >reason</th>
    <th >positionid</th>
  </tr>

</table>
<br/>

  </body>
</html>

In other words, there is a table header but no data are returned

This identical request, but with the format set to text/plain (http://localhost:8080/geoserver/wms?LAYERS=locations%3AHistoric_traverses&TRANSPARENT=true&WIDTH=550&HEIGHT=550&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A3031&BBOX=-2448242.1875%2C1471289.0625%2C-2340820.3125%2C1578710.9375&X=208&Y=273&INFO_FORMAT=text%2Fplain&QUERY_LAYERS=locations%3AHistoric_traverses&FEATURE_COUNT=50)

returns

Results for FeatureType 'Historic_traverses':
--------------------------------------------
my_name_space = Historical_Traverses
externalid = 25
description = Traverse from Herbert Sound to Persson Island led by D.G. Stratton in 1953
internalid = 160580
label = D.G. Stratton 1953
trackid = Herbert Sound to Persson Island, D.G. Stratton, 1953
locationid = 160580
latitude = -64.1958
longitude = -57.6378
method = Map
relativetoid = null
absoluteaccuracy = 1000.0
relativeaccuracy = null
citationid = 501
person = X_DGS
my_time_stamp = 1953-09-07 00:00:00.0
reason = null
positionid = 56480
the_geom = [GEOMETRY (Point) with 1 points]
--------------------------------------------

Unfortunately my test harness is not visible outside our intranet, but given the nature of the bug, it should be readily replicated.

Best wishes

Paul Cooper

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira