Opened 4 years ago

Closed 4 years ago

#2353 closed enhancement (fixed)

Petascope - returns rasql error message and rasql query in two different XML error elements

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: petascope Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

Currently, petascope mixes the rasql error message and raql query in one large text in the result of W*S requets.

It needs to separate the error message from rasql query for better understanding to users, e.g:

<!-- rasql error message -->
<ows:ExceptionText>
   Serialisable exception r_Ebase_dbms: error in base DBMS.
</ows:ExceptionText>

<!-- rasql query exected -->
<ows:ExceptionText>
    Error evaluating rasdaman query: 'SELECT encode(c[0,0:3639,0:39], "image/jpeg" , "{\"geoReference\":{\"crs\":\"EPSG:3577\",\"bbox\":{\"xmin\":1400000,\"ymin\":-3500000,\"xmax\":1401000,\"ymax\":-3409000}},\"metadata\":{\"Creator\":\"National Computational Infrastructure (NCI) Australia\",\"Project\":\"EarthServer2 - earthserver.eu\",\"Title\":\"LS8_14_35\"}}") FROM ls8_coastal_aerosol AS c'.
</ows:ExceptionText>

In wslcient, it should also only shows the first error message, not the full generated rasql query.

Change History (1)

comment:1 by Bang Pham Huu, 4 years ago

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