Ticket #2630 (closed feature: fixed)
Attribute Columns Do Not Accurately Display Case of Attribute Names
| Reported by: | greycatMV | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.10 Release |
| Component: | Filter | Version: | 2.9 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
CQL is case-sensitive. The attribute table in OpenLayers seems to display all attribute names in UPPER case, even if they are not. OpenLayers should display attribute names with accurate casing. Otherwise, if you copy and paste the attribute column header text into a CQL query it breaks -- unless you happen to also name your attributes in UPPER case -- not likely. This lead me to some confusion until I figured out what the problem was, because I would get error messages saying things like "Perhaps BLDGID does not exist or is misspelled?" even though I was looking at the attribute table below where it displays as BLDGID.
You can see this bug in action here: http://tinyurl.com/2f449zs
View page source and see Line 89, Col 17 of the CSS shipping with GeoServer 2.0.1 for the culprit:
table.featureInfo th {
padding: .2em .2em; text-transform: uppercase; <!-- bad idea ---> font-weight: bold; background: #eee;
}
(GeoServer 2.0.1 on Mac OS 10.4.11)
Cheers, Christine Bush Mountain View, California
