GeoServer
  1. GeoServer
  2. GEOS-3210

filtering property names does not work properly with aliased feature type with json output

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.7.6, 2.0-beta2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Steps to reproduce:

      1. Alias states layer
      2. Make the request:

      curl -G "http://localhost:8080/geoserver/wfs?request=getfeature&typename=topp:usa&maxfeatures=1&outputformat=json&propertyname=STATE_ABBR"

      1. GEOS-3210.patch
        2 kB
        Justin Deoliveira

        Activity

        Hide
        Justin Deoliveira added a comment -

        Actually this will probably be an issue with any output format that is not GML. In GML when a value is null the element is to be omitted, but in other vector formats this may not be the case.

        Show
        Justin Deoliveira added a comment - Actually this will probably be an issue with any output format that is not GML. In GML when a value is null the element is to be omitted, but in other vector formats this may not be the case.
        Hide
        Justin Deoliveira added a comment -

        Could you guys take a look at this patch.

        Show
        Justin Deoliveira added a comment - Could you guys take a look at this patch.
        Hide
        Andrea Aime added a comment -

        The patch looks good. Can we also have a unit test added to RetypingDataStoreTest?

        Show
        Andrea Aime added a comment - The patch looks good. Can we also have a unit test added to RetypingDataStoreTest?
        Hide
        Justin Deoliveira added a comment -

        Fixed and test case added.

        Show
        Justin Deoliveira added a comment - Fixed and test case added.

          People

          • Assignee:
            Justin Deoliveira
            Reporter:
            Justin Deoliveira
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: