Opened 6 years ago

Closed 6 years ago

#2102 closed defect (fixed)

SECORE - show proper error for parameterized AUTO CRS

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: secore Version: 9.7
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

When one visits http://www.opengis.net/def/crs/OGC/1.3/AUTO42003, he will see not-related error from WebBrowser

XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.opengis.net/def/crs/OGC/1.3/AUTO42003

Line Number 8, Column 1:<?xml version="1.0" encoding="ISO-8859-1"?>
^

due to SECORE returns invalid XML format (nested exceptions)

<?xml version="1.0" encoding="ISO-8859-1"?>

<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="InternalComponentError">
    <ows:ExceptionText>Failed at querying the database, detail: Stopped at ., 15/35:
[FODC0002] Server returned HTTP response code: 400 for URL: http://www.opengis.net/def/coordinateOperation/OGC/1.3/AutoOrthographicConversion/$lon/$lat
Information:
<?xml version="1.0" encoding="ISO-8859-1"?>

<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="InvalidParameterValue" locator="lon">
    <ows:ExceptionText>Failed evaluating the parameter value '$lon'.</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>


Stack Trace:
- ., 75/30
- ., 75/30
- ., 81/27 Check collection name and version are valid first.</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

It should return the proper error for the required parameters lon and lat which can be displayed in the Web Browser.

Change History (1)

comment:1 by Bang Pham Huu, 6 years ago

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