Opened 8 years ago
Closed 7 years ago
#1583 closed defect (fixed)
earthlook client rasql console does not send request correctly
Reported by: | Peter Baumann | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 9.5 |
Component: | raswct | Version: | development |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu | |
Complexity: | Medium |
Description
on http://standards.rasdaman.com → rasql console I run this query:
SELECT encode( ((((float)(c.0 - c.1)) / ((float)c.0 + (float)c.1)), "csv") from NIR as c
…and I get zero output.
Change History (4)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 8 years ago
Cc: | added |
---|
It has error with Javascript for parsing the result from Petascope.
demo.js:131 Uncaught TypeError: Cannot read property 'split' of undefined(…)
comment:4 by , 7 years ago
Component: | undecided → raswct |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Summary: | earthlook client does not display CSV → earthlook client rasql console does not send request correctly |
The real problem is in the Rasql console, it should send the username, password of rasuser and query as GET request to Rasql Servlet or any requests to Rasql Servlet not only csv will return error.
I fixed in the earthlook, but the file does not exist in raswct so no patch to update.
Here is what I fixed:
in http://earthlook.eecs.jacobs-university.de/demo/demo-frames/rasql/demo.js
(/mnt/rasservice/Earthlook/web/www/www/demo/demo-frames/rasql/demo.js)
line 46 add this: params["request"] = "?username=" + params.username + "&password=" + params.password + "&query=" + params.query;
and in http://earthlook.eecs.jacobs-university.de/demo/demo-frames/raswct/raswct.js (/mnt/rasservice/Earthlook/web/www/www/demo/demo-frames/raswct/raswct.js)
line 30712 add: // Rasql Servlet is sent with GET request and parameters need to be added in query string if (transport.getServiceHttpMethod() == "get") { serviceUrl += transport.getParams().request; }
Seems like on syntax errors no error msg is displayed. But just a suspicion.