Opened 11 years ago

Closed 10 years ago

#356 closed defect (fixed)

SECORE does not report exception when an invalid parameter name is set on a non-parametrized CRS

Reported by: Piero Campalani Owned by: Dimitar Misev
Priority: minor Milestone: 9.0
Component: secore Version: 8.4
Keywords: invalid parameters Cc: Dimitar Misev, mrusu
Complexity: Easy

Description

When wrong parameters are set in a URI of a parametrized CRS, SECORE properly reports an error (e.g. see "http://kahlua.eecs.jacobs-university.de:8080/def/crs/OGC/0.1/ANSI-Date?nonsense='foo'")

When handling normal single URIs, it is probably better and clearer if SECORE returns an exception not only when one amongst authority, version, code have typos, but also when one or more additional KV-pairs are set in the URI, e.g. "http://kahlua.eecs.jacobs-university.de:8080/def/crs/EPSG/0/32633?nonsense='foo'".

Change History (2)

comment:1 by Dimitar Misev, 11 years ago

Owner: changed from mrusu to Dimitar Misev
Status: newassigned

An error is now reported. Regular non-parameterized CRS should not have any extra parameters, besides the special expand one.

<ows:ExceptionReport version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd" xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
  <ows:Exception exceptionCode="InvalidRequest">
    <ows:ExceptionText>Expected parameterized CRS definition, but http://localhost:8080/def/crs/EPSG/0/4327?foo=qwerty points to GeodeticCRS. Identifiers of simple definitions are not supposed to contain extra parameters, aside from the authority, version and code.</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

comment:2 by Dimitar Misev, 10 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.