opengeospatial / ets-ogcapi-features10

Public Repository for the OGC API - Features Compliance Test Suite
Other
16 stars 6 forks source link

Improve error message on Features ContentCrs parameter checks #200

Closed aaime closed 1 year ago

aaime commented 1 year ago

Our server incorrectly returns the following header:

Content-Crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84

As you can see, angle brackets are missing. And yet, the error message returned by the test suite is:

java.lang.AssertionError: Features response at 'https://gs-main.geosolutionsgroup.com/geoserver/ogc/features/v1/collections/tiger:poly_landmarks/items?f=application%2Fgeo%2Bjson' does not provide expected 'Content-Crs' header, was: 'http://www.opengis.net/def/crs/OGC/1.3/CRS84', expected: 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'

It should be saying that expected: '<http://www.opengis.net/def/crs/OGC/1.3/CRS84>' instead.

We spent a few minutes wondering why it was complaining that it received exactly what it was expecting, then checked the spec again and figured out the missing angle brackets.