Opened 12 years ago

Closed 11 years ago

#386 closed defect (fixed)

Error when a Parametrized CRS targets a CRS via URN

Reported by: Piero Campalani Owned by: mrusu
Priority: major Milestone: 9.0
Component: secore Version: 8.4
Keywords: parametrized target urn Cc: Dimitar Misev
Complexity: Medium

Description

When creating a ParametrizedCRS definition, there is a bug when trying to target a CRS via URN.

E.g. if we create myAuth:myParam, targeting myAuth:myTarget:

<ParameterizedCRS ...>
  <parameters>
     ...
  </parameters>
  <identifier>urn:ogc:def:crs:myAuth::myParam</identifier>
  <targetCRS xlink:href="urn:ogc:def:crs:myAuth::myTarget"/>
</ParameterizedCRS>

then "<SECORE>/def/crs/myAuth/0/myParam" returns:

<ows:ExceptionReport 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" version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
  <ows:Exception exceptionCode="InvalidRequest">
    <ows:ExceptionText>
      Mallformed request: rn:ogc:def:crs:myAuth::myTarget
    </ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Change History (1)

comment:1 by Dimitar Misev, 11 years ago

Resolution: fixed
Status: newclosed

URNs are automatically translated to URLs now, on anything inserted into SECORE.

Note: See TracTickets for help on using tickets.